Skip to content

Instantly share code, notes, and snippets.

@keeprock
Created March 31, 2015 07:34
Show Gist options
  • Save keeprock/2892a0cceb18ed873cd2 to your computer and use it in GitHub Desktop.
Save keeprock/2892a0cceb18ed873cd2 to your computer and use it in GitHub Desktop.
div {
position: absolute;
left: 50%;
top: 50%;
-o-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment