Skip to content

Instantly share code, notes, and snippets.

@jwdunn1
Created July 10, 2019 22:55
Show Gist options
  • Save jwdunn1/a527d560cfce2927af60ba200bff2029 to your computer and use it in GitHub Desktop.
Save jwdunn1/a527d560cfce2927af60ba200bff2029 to your computer and use it in GitHub Desktop.
Centering
<div class="parent">
<img src="http://lorempixel.com/200/200/cats">
</div>
body {margin:0}
.parent {
height: 100vh;
background: #000;
display: grid;
align-items: center;
justify-content: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment