Created
September 15, 2020 17:57
-
-
Save ohiosveryown/deac5188b536a7fb6537cfaf3e941293 to your computer and use it in GitHub Desktop.
Vertically and Horizontal Centering with CSS Grid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.parent { | |
display: grid; | |
place-items: center; | |
height: 100vh; | |
} | |
.child { | |
width: 50vw; height: 50vh; | |
background: papayawhip; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment