Skip to content

Instantly share code, notes, and snippets.

@MinChanSike
Last active March 4, 2019 02:21
Show Gist options
  • Save MinChanSike/af01411fe9652d60b432b068650aef81 to your computer and use it in GitHub Desktop.
Save MinChanSike/af01411fe9652d60b432b068650aef81 to your computer and use it in GitHub Desktop.
CSS Content Center
.container {
position: absolute;
top: 50%;
left: 50%;
margin-right: -50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment