Skip to content

Instantly share code, notes, and snippets.

@tommymarshall
Created January 5, 2015 20:51
Show Gist options
  • Save tommymarshall/5adbe71a7b6cff190e71 to your computer and use it in GitHub Desktop.
Save tommymarshall/5adbe71a7b6cff190e71 to your computer and use it in GitHub Desktop.
%vertically-centered-child
font-size: 0
&:before
content: ''
display: inline-block
height: 100%
vertical-align: middle
> *
display: inline-block
vertical-align: middle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment