Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
BS3 Vertical center of row items
.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}
<div class="row">
<div class="col-sm-5 vcenter">
<div style="height:10em;border:1px solid #000">Big</div>
</div>
<div class="col-sm-3 vcenter">
<div style="height:3em;border:1px solid #F00">Small</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.