CSS & vertical rhythm for text, images, and tables

5 points by vbernat


chrismorgan

On the web, vertical rhythm is highly overrated. It’s often presented as an inherent good (and is in this article), but in practice it’s almost never useful, and I’ve never heard a compelling argument for applying it beyond two general cases:

  1. Aesthetics of ruled paper (but mostly I wish people wouldn’t with regular HTML text, because they never get the text baseline right, and you can’t without a known font or JavaScript, neither of which can be guaranteed, and even when you do, pixel snapping has a habit of making it look bad).

  2. Heterogeneous content side-by-side: multiple columns (can be significant benefit), floats (generally little benefit, and requires flexible height rather than added spacing to really work), and paged media (especially if printed double-sided on thin paper—then it’s painful without rhythm).

All of these cases are rare for the web.