Day: October 21, 2008

Visualizing the CSS Box Model

Posted on Updated on

Since the way web browsers deal with width and height is so non-intuitive, I’ve created this a handy guide showing how the CSS (Cascading Style Sheets) box model applies widths and heights when scrolling, margins, borders, and padding are involved:

CSS Box Model