Thanks to CSS Flexible Box, now vertical alignment is possible even in unknown heights.
8.3 Cross-axis Alignment: the align-items and align-self properties
Flex items can be aligned in the cross axis of the current line of the
flex container, similar to justify-content
but in the perpendicular
direction. align-items
sets the default alignment for all of the flex
container’s items, including anonymous flex items.
center value:
The flex item’s margin box is centered in the cross axis within the line. (If the cross size of the flex line is less than that of the flex item, it will overflow equally in both directions.)
Hence, you coud add an additional class to .row
1 element with the following declarations:
EXAMPLE HERE
<div class="container-fluid">
<div class="row vertical-align"> <!--
Here --^ -->
<div class="col-xs-6"> ... </div>
<div class="col-xs-6"> ... </div>
</div>
</div>
.vertical-align {
display: flex;
align-items: center;
}
For further reading (including browser support) you could refer to resources below:
1. You don't really want to alter all Twitter Bootstrap's rows, do you?