Forum Moderators: not2easy
In a table I would have just set the v-align, but that does not seem to be working for this.
I am stuck. :) probably need more caffiene.
Can someone point me in the right direction to get this set up the way I want?
Thanks!
--
T
Vertical-Align: Browser Support? [webmasterworld.com]
mavherick
#container {
width: 100%;
height: 59px;
background-color: #CCC;
}
#text {
margin: 18px 0px 0px 0px;
}
<div id="container">
<div id="text">
Text here
</div>
</div>
I got the 18px by doing 59/2 - an estimation of the font size (if it is fixed (px) you can just use that value). So 59/2 - 12 = 17.5, round up to 18. This would really only work for a fixed layout though...