Unitless line height in CSS
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
Quick links
Other people's articles that we think you might be interested in:
- Ajaxian » Web Inspector: Looking good, and profiling nicely
- smush it!
- cssdoc - Trac
- CSS Systems for writing maintainable CSS | Natalie Downe
- The PNG Gamma Dilemma - Trevor Morris Photographics
Want to buy a cheap laptop for your design work? read laptop reviews at laptopical.com