Skip to content

Instantly share code, notes, and snippets.

@avuenja
Created September 26, 2021 13:11
Show Gist options
  • Save avuenja/e035f77b11417770045920404e11ee26 to your computer and use it in GitHub Desktop.
Save avuenja/e035f77b11417770045920404e11ee26 to your computer and use it in GitHub Desktop.
Centering a div
.parent{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment