O'Reilly logo

InterACT with Web Standards: A holistic approach to web design by Denise Jacobs, Glenda Sims, Christopher Schmitt, Chris Mills, Leslie Jensen-Inman, Lars Gunther, Derek Featherstone, Virginia DeBolt, Erin Anderson

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 21. Positioning

by Chris Mills

Having conquered the menaces of floats and clearing in the last chapter, we will now turn our attention to the second advanced layout-related topic you should be familiarising yourself with: positioning. This feature of CSS allows you to take elements out of the normal document flow (i.e., where they are placed by default before any CSS is applied to them) and shift them left, right, up and down, putting them somewhere else entirely. This is useful for a variety of layout purposes, such as multiple column layouts, putting captions on photographs, keeping a feature such as a menu or heading in the same position on the screen regardless of how much the browser is scrolled, and more.

In this chapter, we will ...

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