Skip to content

Instantly share code, notes, and snippets.

@paulobunga
Created August 20, 2017 11:24
Show Gist options
  • Save paulobunga/f88db92640c9c65c317b454e591ec432 to your computer and use it in GitHub Desktop.
Save paulobunga/f88db92640c9c65c317b454e591ec432 to your computer and use it in GitHub Desktop.
Centering with html css grid
<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment