Chapter 18. Element Positioning

In Chapter 11 you learned how XHTML tables could be used to create document layouts, positioning elements in a grid-like pattern to format a document. The table layout method allows for fairly diverse and complex layouts. However, CSS provides several sizing and positioning properties that allow you much more control over your document. CSS-based document layout has several other advantages, as well, especially when used in conjunction with other technologies (such as Dynamic HTML, covered in Chapters 21 and 22). This chapter covers the various positioning, sizing, and visibility properties available in CSS.

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.