shapper wrote:
I created the following header:
http://www.27lamps.com/Beta/Typography/Typography.html
Where Font Size is the same as Line Height: 2.0em.
No, both are declared using the same expression, but it has different
meanings.
For font-size, the em unit means the size of the font of the parent element.
Shouldn't the border be next to the text?
Even if you set line-height to 1em, making it equal the font size, the
border does not normally touch letters. Remember that the font size is the
total height of the font, normally encompassing ascenders, descenders, and
diacritic marks. A letter like "H" should be expected to have a height that
is notably less than the font size.
Actually if the text contains letters like "j" and "Å", those letters might
extend to the border (set for an element with line-height: 1em) and even a
little beyond. But most letters - for the Latin script at least - have
spacing below and above them.
Yucca