Skip to content

Instantly share code, notes, and snippets.

@chrishutchinson
Created August 15, 2013 08:30
Show Gist options
  • Save chrishutchinson/6239240 to your computer and use it in GitHub Desktop.
Save chrishutchinson/6239240 to your computer and use it in GitHub Desktop.
CSS: Absolute centring
div{
display: table;
height: auto;
margin: auto;
position: absolute;
left: 0;
bottom: 0;
top: 0;
right: 0;
width: 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment