In This Chapter
Understanding the pitfalls of traditional layout tools
Using float with images and block-level tags
Setting the width and margins of floated elements
Creating attractive forms with float
Using the clear attribute with float
One of the big criticisms against HTML is that it lacks real layout tools. You can do a lot with your page, but it's still basically a list of elements arranged vertically on the screen. As the web matures and screen resolutions improve, people want web pages to look more like print matter, with columns, good-looking forms, and more layout options. CSS provides several great tools for building nice layouts. After you get used to them, you can build just about any layout you can imagine. This chapter describes the amazing float attribute and how it can be used as the foundation of great page layouts.
Back in the prehistoric (well, pre-CSS) days, no good option was built into ...