So I'm using Bootstrap's grids to create (particularly here) a description of some variable T and a slider corresponding to it. The problem is that these two guys are not vertically aligned by default (see here).
I wonder if I could fix this without majorly affecting grids (to make it look cozy in mobile version as well). The best option would be the solution using some Bootsrap classes (without using fixed pixel-size).
P.S. Just in case if it's important, I'm using jQuery UI Slider Pips for my .slider.
<div class="row">
<div class="col-sm-2 text-right">
<h4>T<br> <small>Some Description</small></h4>
</div>
<div class="col-sm-10">
<div class="slider"></div>
</div>
</div>
UPD. Using the following code for a parent is not an option.
.sliderParent {
display: flex;
align-items: center;
}
It helps with a fixed positioning of div's, but instead disables Bootstrap's grid transitioning from col-sm-* to col-xs-*
<div class="row sliderParent">
<div class="col-sm-3 col-xs-12">
...
</div>
<div class="col-sm-9 col-xs-12">
...
</div>
</div>
So if anyone can advice something else I would be very grateful. = )
UPD. I found a solution here. Not exactly what I wanted, but at least the functionality does not suffer. Here is the class for children div's:
.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}