Paul Irish personal blog

* { box-sizing: border-box } FTW

One of my least favorite parts about layout with CSS is the relationship of width and padding. You’re busy defining widths to match your grid or general column proportions, then down the line you start to add in text, which necessitates defining padding for those boxes. And ‘lo and behold, you now are subtracting…
Points
348
HN comments
85
Submissions
1
Cited by
13 commenters

Web & FrontendSoftware Engineering2012

On Hacker News

SubmittedTitle on HNPointsComments
Feb 16, 2012* { box-sizing: border-box } FTW by tambourine_man34885

Cited in comments

Linked from 14 Hacker News comments by 13 different people, from May 2012 to Nov 2025.

Most recent:

Search every comment that links here →

More from Paul Irish

All 5 posts →

Related posts from the same era