Created
January 8, 2015 00:56
-
-
Save CassyJens/ec8ba0ab1f66deb597ed to your computer and use it in GitHub Desktop.
vertical center div for all browsers
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
.outer { | |
display: table; | |
height: 100%; | |
position: absolute; | |
width: 100%; | |
} | |
.middle { | |
display: table-cell; | |
vertical-align: middle; | |
} | |
.inner { | |
margin-left: auto; | |
margin-right: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment