Check out this example to see what I mean. You may need to zoom in to notice the issue http://jsfiddle.net/54NEa/
<div id="top">SomeText</div>
<div id="middle">SomeText</div>
<div id="bottom">SomeText</div>
div{
display: inline-block;
background-color: red;
font-family: Lucida Sans Unicode,Verdana,Arial,Helvetica,sans-serif;
font-size: 10px;
line-height: 10px;
}
div.top {vertical-align:top;}
div.middle {vertical-align:middle;}
div.bottom {vertical-align:bottom}
Even though the line height is set to 10px, you'll notice that the text doesn't completely fill the space - there's some extra padding involved. In Firefox, the padding space is below the text, while in Chrome it appears above. This inconsistency occurs regardless of the vertical-align property or the font used. The text seems to "wiggle" and not align perfectly within its line height. Any suggestions on how to ensure that the font stays fixed relative to its line height across different browsers? I'm creating a small CSS button, and I want to guarantee that both the line height and text height are precisely 10px so that it looks consistent.