Stop Text from wrapping around floating elements

You have an image and you float it left. On the right you have text and you don’t want the text to wrap around the image.

This article explains it well and gives you a nice diagram to show you exactly what the heck I am talking about.

But if you just want the answer, here it is:

Isolate the paragraph somehow (so you don’t do this to every paragraph) and use

[cc lang=”css”]p { overflow: hidden; }[/cc]

Leave a Reply

Your email address will not be published. Required fields are marked *