Posts: 226
Name: Chris
Location: West Yorks , UK
|
Hi, I have a bit of an issude with a box not expanding in my css . im probabally missing something - but i cant seem to get the background to extend to the picture end ;
the page is here : http://www.a-bweddingcars.co.uk/cars.html
The car picture is floated , but the surrounding content does not extend.
The HTML code is as follows:
<div class="boxout">
<div class="boxoutfill">
<h2>Bentley T1</h2>
<img src="img/bentley_t1.jpg" alt="Bentley T1" class="imgbord" width="200" height="181">
<p>The 1973 <span class="bold">Bentley T1- </span> the status symbol of its day.</p>
<p> Our Bentley T1 is in Silver with Cream Leather interior - just the car to arrive in style and comfort.</p>
<br class="brclear" />
</div>
</div>
The CSS is : .imgbord {float:left;
padding: 5px;
border:1px solid #999;
background-color:#fff;
margin:5px;}
.brclear {margin:0; padding:0; line-height:0; clear:both;}
I cant seem to work out why this is not having the desired effect
|