All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Examining CSS Layout Complexity and the Case for Constraint-Based Systems

By

fanf2

5mo ago· 14 min readenInsight

Summary

The article discusses the complexity and challenges of CSS layout systems, questioning whether CSS should be fundamentally rethought as a constraint-based system rather than its current approach. The author, who has formal expertise in CSS specification, examines historical layout problems like the 'Holy Grail' layout and centering divs, suggesting that CSS's current model might be fundamentally flawed and proposing that a constraint-based approach could offer a more intuitive solution for web layout design.

Key quotes

· 5 pulled
CSS is hard. The layout rules are quite complex. Most people don't know the details.
Centering a <div> is famously a challenge.
Remember the 2000s, when A List Apart would run all sorts of crazy ways to achieve the 'Holy Grail' layout—a header, a main body and sidebar of equal heights, and a footer?
Should CSS layout—given that it's such a mess—just be thrown out, to start over with a totally different system?
In grad school I wrote the first formal specification of CSS 2.1 layout, passing (the relevant fragment of) the conformance test.
Snippet from the RSS feed

You might also wanna read