CSS leads a double life. As great as it is for formatting text, navigation bars, images, and other bits of a Web page, its truly awesome power comes when you're ready to lay out entire Web pages. CSS layout comes in two flavors absolute positioning and floats . Absolute positioning lets you position an element anywhere on the page with pixel-level accuracyor so the theory goes. This kind of total control is exciting, as you'll see in the next chapter, but actually very difficult to achieve. That's why the vast majority of Web pages use float-based layouts, which are the subject of this chapter. |