Created
February 13, 2015 14:24
-
-
Save yarekc/c43e54e8e33557c52e35 to your computer and use it in GitHub Desktop.
centeredDivOnPage
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
<style> | |
html,body { | |
height: 100%; | |
width: 100%; | |
overflow: hidden; | |
} | |
.containerFull{ | |
height:100%; | |
width: 100%; | |
display:table; | |
} | |
.row-fluid { | |
height: 100%; | |
display:table-cell; | |
vertical-align: middle; | |
} | |
</style> | |
</head> | |
<div class="containerFull"> | |
<div class="row-fluid"> | |
<div style="text-align: center"> | |
Yeah I'm centered | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment