Thicky
01-28-2012, 02:08 PM
Hi there, Sorry for my bad english, but I hope you can help me anyway ^^
I'm working on a website for fun and having a problem with div.
I created a div id tag at top of my website right under <body> and closed it right before </body> so I can have all my content in white background and the rest of it around in a grey color. But when I add a white background to the tag I get something looking like this:
The white background stop right under the top. BUt I want it to end at the bottom right before the footer. I could add a height to it and that works. But then if I add more text I will have to change the width manualy each time :/
This is how my css code looks like: #white {
background-color:#FFF;
height:100%;
width:800px;
}
I read somewhere that this could be caused of float:left/right which I'm useing.
I'm working on a website for fun and having a problem with div.
I created a div id tag at top of my website right under <body> and closed it right before </body> so I can have all my content in white background and the rest of it around in a grey color. But when I add a white background to the tag I get something looking like this:
The white background stop right under the top. BUt I want it to end at the bottom right before the footer. I could add a height to it and that works. But then if I add more text I will have to change the width manualy each time :/
This is how my css code looks like: #white {
background-color:#FFF;
height:100%;
width:800px;
}
I read somewhere that this could be caused of float:left/right which I'm useing.