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

Positioning Elements Absolutely

As noted, the elements in your Web page generally flow in the order in which they appear in the HTML source code Image. That is, if the img element comes before the p, the image appears before the paragraph. You can take elements out of the normal flow—and position them absolutely—by specifying their precise position with respect to the body Image or to the nearest positioned ancestor element Image.

Our search form is still sitting ...

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