CSS Float not expanding div

Associate
Joined
15 Apr 2008
Posts
1,031
Location
West Didsbury, Manchester
This is the page in question:

http://devel.embed.me.uk/cccms/index.php?page=1

As you can see the image is not expanding the (white) div that it is located in to it's full length. Is there anyway to force this? It only happens when I use float. Here is the class that is applied to the image:

Code:
img.imageLeft {
  float:left;
  margin-right: 20px;
  margin-bottom: 5px;
  display:block;
}

and the page source:

Code:
<div id="bodyTop">		
</div>
<div id="body">
Welcome to <strong>CCCMS DEVEL</strong><br />
<br />
<img class='imageLeft' style='width:700px;' src='userImages/pat.jpg' />			</div>
<div id="footer">
<p></p></div>
</div>

Thanks in advance!
 
Haha, it most certainly doesn't! I use the garish colours so I can easily identify containers and see what I'm working with or which part of the CSS is mis-behaving.
 
Back
Top Bottom