Skip to content

Instantly share code, notes, and snippets.

@samrayner
Last active August 29, 2015 14:17
Show Gist options
  • Save samrayner/3d6bcf74e91ac3de6317 to your computer and use it in GitHub Desktop.
Save samrayner/3d6bcf74e91ac3de6317 to your computer and use it in GitHub Desktop.
.valign-outer {
&::before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
margin-right: -0.3em; //adjusts for spacing
}
.valign-inner {
display: inline-block;
vertical-align: middle;
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment