O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making Elements Float

You can make elements float in a sea of text (or other elements). You can use this technique to make text wrap around images (Image and Image) or figures to create multi-column layouts and more.

Image When you float an element to a side, the content that would normally display after it flows around it instead. Here, I’ve floated the image containers (a p with class="photo") to the left in order to get the blog entry introductory text next to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required