Last active
November 9, 2016 14:47
-
-
Save joviczarko/89c3226434d101e7032c5f94e437f107 to your computer and use it in GitHub Desktop.
Bootstrap column vertical centered (middle aligned) divs
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="row"> | |
<div class="col-xs-6 vcenter"> | |
<div>Div1</div> | |
</div> | |
<div class="col-xs-6 vcenter"> | |
<div>Div2</div> | |
</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
.vcenter { | |
display: inline-block; | |
vertical-align: middle; | |
float: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment