Skip to content

Instantly share code, notes, and snippets.

@stormwarning
Created March 4, 2014 23:19
Show Gist options
  • Save stormwarning/9357828 to your computer and use it in GitHub Desktop.
Save stormwarning/9357828 to your computer and use it in GitHub Desktop.
/**
* Vertically center an element's children.
*/
%vertical-center {
display: table;
> * {
display: table-cell;
vertical-align: middle;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment