Skip to content

Instantly share code, notes, and snippets.

@boundsj
Created August 6, 2013 21:34
Show Gist options
  • Save boundsj/6168910 to your computer and use it in GitHub Desktop.
Save boundsj/6168910 to your computer and use it in GitHub Desktop.
center div
.container {
position: relative;
}
.centered {
position: absolute;
height: 10px;
width: 10px;
top: 50%;
left: 50%;
margin-top: -5px;
margin-left: -5px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment