Float causing background-color not to show
I'm trying to create a box with curved corners, but without using tables.
here's the code:
<div style="width:769px;background-color:#000000;padding-top:20px; color:#000000;"><img src="images/ad_banner.gif" width="558" height="69" alt="" class="centeredAd" /><img src="images/ele_btmLeftCorn_black.gif" width="6" height="8" alt="" style="float:left" /><img src="images/ele_btmRightCorn_black.gif" width="6" height="8" alt="" style="float:right" /></div>
the code is working except that between the 2 corner images (ele_btmLeftCorn_black.gif & ele_btmRightCorn_black.gif) the background-color is not being used: instead of black it's white. I know i could either use a table or just make one image that has both corners on it, but i'd rather use my 2 small images and no tables.
thanks,
Josh
|