Unitless line height in CSS

by Pascal Opitz

published 9 July 2007

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.

Comment

Have your say

If your comment doesn't show up straight away, please don't be offended - we're not censoring, we are just trying to keep out all the viagra and poker ads. Thanks to an explosion of spam all comments are held for manual green-lighting.

name Remember
email
http://
Message <?>

Quick links

Other people's articles that we think you might be interested in: