Hi. This shouldn’t be too hard. I’ve read the CSS documentation at w3schools, and this just doesn’t seem to work. I have a bar at the bottom of the screen, and I want to center text vertically on this bar.
[code]
#bar
{
position: absolute;
bottom: 0;
height:31;
width:100%;
}
#bartext
{
position: relative;
vertical-align:middle;
float:right;
height:31px;
width:10%;
font-family: tahoma;
color:white;
}
[code]
<div id=”bar”>
…
<div id=”bartext”>
Vertically Centered Text
</div>
</div>
It seems, from the css documentation, that ‘vertical-align:middle’ should do it, but it is still top aligned. What am I missing? Thanks.