I\'m using Twitter Bootstrap 3, and I have problems when I want to align vertically two div
, for example — JSFiddle link:
I prefer this method as per David Walsh Vertical center CSS:
.children{
position: relative;
top: 50%;
transform: translateY(-50%);
}
The transform
isn't essential; it just finds the center a little more accurately. Internet Explorer 8 may be slightly less centered as a result, but it is still not bad - Can I use - Transforms 2d.