Skip to content

Instantly share code, notes, and snippets.

@cwoodall cwoodall/center.css
Created Jul 14, 2011

Embed
What would you like to do?
CSS Centering Classes
.center {
display:block;
}
.center.horizontal { margin-left: auto; margin-right: auto; }
.center.vertical { top:50%; margin-top:100%; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.