O'Reilly logo

Sams Teach Yourself HTML, CSS and JavaScript All in One by Julie C. Meloni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Understanding the CSS Box Model and Positioning

WHAT YOU’LL LEARN IN THIS CHAPTER:

• How to conceptualize the CSS box model

• How to position your elements

• How to control the way elements stack up

• How to manage the flow of text

In the previous chapter, I mentioned the CSS Box Model a few times—this chapter begins with a discussion of the box model and explains how the information you learned in the previous chapter 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, or the border—just needs a little tweaking for it ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required