Aaron Posted April 3, 2012 Report 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
Aaron Posted April 3, 2012 Author Report Posted April 3, 2012 If I get rid of the "float: left" it works Quote
Aaron Posted April 3, 2012 Author Report Posted April 3, 2012 Fixed it. Added this right before the end of the container div: <br clear="all" /> Quote
Strider Posted April 4, 2012 Report 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
freshJet Posted April 4, 2012 Report Posted April 4, 2012 Putting clear:both in the container CSS would probably do a more efficient job Quote
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.