Skip to content

Instantly share code, notes, and snippets.

@dantheman213
Created December 11, 2015 22:40
Show Gist options
  • Save dantheman213/3f143c201d7c270845a5 to your computer and use it in GitHub Desktop.
Save dantheman213/3f143c201d7c270845a5 to your computer and use it in GitHub Desktop.
HTML5 - center any element
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment