CSS Float and proceeding elements

Soldato
Joined
13 Jan 2004
Posts
21,251
I am floating an image right inside a content container so that the <p>s wrap around it.

The content page is broken down into

<h2>
<img>
<p>
<p>
<p>

This works, however if the paragraphs content is not enough then the following <h2> section will be overlapped by the image I am floating.

See below:

float_bug.jpg



Any ideas?
 
Back
Top Bottom