Skip to content

Instantly share code, notes, and snippets.

@willwright82
Last active August 29, 2015 14:04
Show Gist options
  • Save willwright82/48a9d1b2eba70f3925d4 to your computer and use it in GitHub Desktop.
Save willwright82/48a9d1b2eba70f3925d4 to your computer and use it in GitHub Desktop.
Absolute Center
<style>
div{
background: red;
bottom: 0;
height: 100px;
left: 0;
margin: auto;
position: absolute;
top: 0;
right: 0;
width: 100px;
}
</style>
<div>
magix!
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment