Created
August 8, 2013 16:05
-
-
Save rpearce/6185956 to your computer and use it in GitHub Desktop.
A CodePen by Robert Pearce.
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
<div class="wrapper"> | |
<div class="box"></div> | |
<div class="box content">Some text</div> | |
</div> |
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
html, body { | |
height: 101%; | |
} | |
.wrapper { | |
width: 100%; | |
height: 100%; | |
text-align: center; | |
background-color: #ccc; | |
} | |
.box { | |
display: inline-block; | |
vertical-align: middle; | |
height: 100%; | |
} | |
.content { | |
background: #fff; | |
height: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment