I\'m using Twitter Bootstrap 3, and I have problems when I want to align vertically two div
, for example — JSFiddle link:
There are several ways you can do it:
Use
display: table-cell;
vertical-align: middle;
and the CSS of the container to
display: table;
Use padding along with media-screen for changing the padding relative to the screen size. Google @media screen to know more.
Use relative padding
I.e., specify padding in terms of %