Home › Forums › CSS › Vertikal centering responsive bootstrap div › Reply To: Vertikal centering responsive bootstrap div
November 12, 2013 at 12:57 am
#155796
Merri
Participant
With no changes to HTML:
html {
display: table;
height: 100%;
width: 100%;
}
body {
display: table-cell;
padding-top: 90px; /* .navbar height */
vertical-align: middle;
}
.navbar {
position: absolute;
left: 0;
top: 0;
width: 100%;
}
And you may be lucky enough to see it working on IE8 as well.