Does the pixel value of a font-size refer to the height of the font or the width of the font?
CSS:
.sixteen {
font-size: 16px;
}
HTML:
<span class='sixteen'>a</span>
Will the "a" be 16 pixels tall or 16 pixels wide, or is that like a max-width/height on both so that the entire character fits in a 16px box?
All the documentation I have seen for this has been ambiguous on the matter.
QÅgjþÊ
`. The CSS 2.1 spec says: “The font size corresponds to the em square, a concept used in typography. Note that certain glyphs may bleed outside their em squares.” http://www.w3.org/TR/CSS2/fonts.html#font-size-props – Jukka K. Korpela Apr 27 '12 at 20:20