Skip to content

Instantly share code, notes, and snippets.

@robskidmore
Created May 9, 2014 17:11
Show Gist options
  • Save robskidmore/b0e90cba01ce46e12317 to your computer and use it in GitHub Desktop.
Save robskidmore/b0e90cba01ce46e12317 to your computer and use it in GitHub Desktop.
Vertically align content in div
.container {
&:before {
content: '';
display: inline-block;
height: 100%;
vertical-align: middle;
}
.centered {
vertical-align: middle;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment