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

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

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