Hour 15. Understanding the CSS Box Model and Positioning

In the previous hour, I mentioned the CSS Box Model a few times—this hour begins with a discussion of the box model and explains how the information you learned in the previous hour helps you understand this model. By learning the box model, you won’t tear your hair out when you create a design and then realize the elements don’t line up or that they seem a little “off.” You’ll know that in almost all cases, something—the margin, the padding, the border—just needs a little tweaking for it to work out.

You’ll ...

Get Sams Teach Yourself HTML and CSS in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.