Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
CSS Centering Classes
.center {
.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.