Chapter 1
Fun with the Fabulous Float
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.
Avoiding Old-School Layout Pitfalls
Back in the prehistoric (well, pre-CSS) days, no good option was built into ...
Get HTML5 and CSS3 All-in-One For Dummies, 3rd Edition 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.