I\'m using Twitter Bootstrap 3, and I have problems when I want to align vertically two div
, for example — JSFiddle link:
I genuinely find the following code works using Chrome and not other browsers than the currently selected answer:
.v-center {
display:table!important; height:125px;
}
.v-center div[class*='col-'] {
display: table-cell!important;
vertical-align:middle;
float:none;
}
.v-center img {
max-height:125px;
}
You may need to amend the heights (specifically on .v-center
) and remove/change div on div[class*='col-']
for your needs.