Yes, adding "line-height: 0" would be better (I'd bet it's spec-compliant), I would have noticed if I had opened a real book
Quote:
Originally Posted by charleski
Alternatively, you can set the line-height in your span to be equal to (line-height of body text)/(font-size in span). So if your first capital is 2.5 em and the body uses a line-height of 1.2, the span needs a line-height of 0.48.
|
That's often unnecessary. First, you cannot be sure of the line-height that the rest of the paragraph uses, unless you set it. But setting it is like setting margins, or font size, it should be something that the user can change. Second, you just need to use a value that's not larger than the "normal" line-height, as that will cause the latter to be used, so using "0" (or "0.01" if you want) should do it.