Aaron Posted April 3, 2012 Report Share Posted April 3, 2012 In my CSS for my website, the backround is blue and there is a white container thing that is supposed to have all the content in it. It was working then I changed a diferent div and it's not working now, the white is only around the banner. See it at http://www.canforce.org . container #container { margin-left:auto; margin-right:auto; margin-top: 0px; margin-bottom: 0px; width:760px; background-color: #FFF; padding:10px; } Code that I changed. I hadn't changed anything in the tpl, but if I completely delete the stuff inside the div, then the container will work #body { float: left; width: 405px; padding-left: 10px; } Quote Link to comment Share on other sites More sharing options...
Aaron Posted April 3, 2012 Author Report Share Posted April 3, 2012 If I get rid of the "float: left" it works Quote Link to comment Share on other sites More sharing options...
Aaron Posted April 3, 2012 Author Report Share Posted April 3, 2012 Fixed it. Added this right before the end of the container div: <br clear="all" /> Quote Link to comment Share on other sites More sharing options...
Strider Posted April 4, 2012 Report Share Posted April 4, 2012 Just so you know a break tag is <br />, not </br>. You seem to have a lot of closing tags that are not open, you have a few </strong> but not <strong>, an </li> with no <li> or even <ul>. Quote Link to comment Share on other sites More sharing options...
freshJet Posted April 4, 2012 Report Share Posted April 4, 2012 Putting clear:both in the container CSS would probably do a more efficient job Quote Link to comment Share on other sites More sharing options...
Aaron Posted April 5, 2012 Author Report Share Posted April 5, 2012 I'll check it out thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.