I have a layout set up, and I added a wrapper to keep everything in place, the wrapper's background is white, but now I'm trying to add a footer with a different colored background but for some reason it is still white.
This is the footer,
and the wrapper,Code:#footer{ clear:both; margin: 0 auto; border-top:solid 5px #150D0F; background:#3FF; padding-left: 10px; font-size:13px; height: 100%; } #footer h2 { font-size:18px; color:#666; } .left-foot{ float: left; width: 200px; padding-right: 10px; } .center-foot{ width: 354px; float: left; padding-right: 10px; } .right-foot{ float: right; width: 225px; }
This is the HTML codeCode:#rapper { clear:both; width:860px; margin: 0 auto; background:#FFF; overflow: hidden; }
Code:<div id="rapper"> <div id="footer"> <div class="left-foot"> <h2>General Inquiries</h2> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae</p> <p> Phone- 303-333-333<br /> info@info.com<br /> inquiries@info.com<br /> webmaster@info.com<br /> </p><p> We will respond as soon as we get your message</p> </div><!--end left--> <div class="center-foot"> <h2>Our services</h2> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae</p> <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae</p> </div><!--end center--> <div class="right-foot"> <h2>Our Affiliates</h2> <p><center><img src="images/ad.gif" /></center></p> <p> Click here for all of our affiliates.</p> </div><!--end right--> </div> <!-- end footer --> </div><!-- end rapper-->






. It wasn't an expected thing of overflow:auto/hidden, but it can contain floats, which is what Ray was telling you to do
I'm gonna use overflow:hidden every chance I get

.

Bookmarks