Skip to content

Instantly share code, notes, and snippets.

@xto3na
Last active December 7, 2015 18:52
Show Gist options
  • Save xto3na/63f975cc6cd8506e9d3c to your computer and use it in GitHub Desktop.
Save xto3na/63f975cc6cd8506e9d3c to your computer and use it in GitHub Desktop.
CENTER ELEMENT - position: absolute;
.element {
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%);
transform: translateY(-50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment