Archive for the ‘line-height’ Category

Deep dive CSS: font metrics, line-height and vertical-align

Posted on: No Comments
Vincent De Oliveira has written an epic post that details pretty much everything you might ever want to know about the line-height and vertical-align properties. If you’ve ever had trouble aligning things next to text or wondered why two fonts look s...

Unitless or not unitless?

Posted on: No Comments
Matt Smith: You should always specify line-height as a unitless number (say this into the mirror five times). That way descendent elements that specify a different font size will inherit that number instead of a fixed line height. Counterpoint in the c...

Molten Leading in CSS

Dave and I started the latest ShopTalk Show with an audio clip from Tim Brown responding to some of our previous chatter regarding vertical rhythm (and such). Transcription here. It sparked another interesting conversation about these things. A small...