O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

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

Determining How to Treat Overflow

Elements are not always contained in their boxes. Sometimes the box is simply not big enough. For example, an image that is wider than its container will spill out of it. Or perhaps you’ve positioned the content outside of the box, either with negative margins or absolute positioning. Regardless of the cause, you can control the area outside of the element’s box with the overflow property.

Image The images at the bottom of the footer wrap to multiple lines when the window is narrow. This is usually a good thing, because you want your content to adapt to different conditions. But just to show you how the overflow property ...

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