Skip to content

Instantly share code, notes, and snippets.

@JasperMeurs
Created April 2, 2020 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JasperMeurs/6f553c180365bdb3975fc703a694b6da to your computer and use it in GitHub Desktop.
Save JasperMeurs/6f553c180365bdb3975fc703a694b6da to your computer and use it in GitHub Desktop.
.center {
text-align: center;
align-items: center;
align-self: center;
align-content: center;
justify-items: center;
justify-self: center;
justify-content: center;
place-items: center;
vertical-align: middle;
line-height: 100%;
margin: auto;
position: absolute;
left: 50%;
right: 50%;
transform: translate(-50%, -50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment