Latest: Photobox are looking for a Build System Engineer

Content with Style

Web Technique

Unitless line height in CSS

by Pascal Opitz on July 9 2007, 05:11

For a couple of years now I keep stressing the fact that line-height works best when you don’t provide a unit. And I am not saying this for no reason.

As neatly explained by Eric Meyer the unitless line height doesn’t enforce it’s computed size onto the inheriting element.

Comments

Don't miss the opportunity to leave the first comment.

Leave your comment

Comments are moderated.
Tags allowed: a, strong, em, code, ul, ol, li, q, blockquote, br, p

Advertisement
Advertisement