Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Centering with Grid</title>
- <style>
- body, html {
- height: 100%;
- display: grid;
- }
- h1.title {
- margin: auto;
- }
- </style>
- <head>
- <body>
- <h1 class="title">
- Hello, Paul Obunga
- </h1>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement