Created
April 25, 2012 04:52
-
-
Save magemore/2486506 to your computer and use it in GitHub Desktop.
Center certain content vertically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.container { | |
min-height: 10em; | |
display: table-cell; | |
vertical-align: middle; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Say that three times fast. But seriously, this will vertically center content that’s in a container (like in a cell of a HTML table).