I have set pretty much my whole page in a container.

When I code the container to have background-color: black; it stops at the tabs.

http://www.hmstechnology.com/new_hms_site_tabs/ (view page source to see code)

Any suggestions?

Thanks,

Phil

Recommended Answers

All 8 Replies

if you want your whole background to be black, why don't you style the body instead?

<style type="text/css">

body
{
    background-color: #000;
}

</style>

Because if I do that, everything will be black. I just want the container to be black, and the rest (especially the sides) to be white.

if you want your whole background to be black, why don't you style the body instead?

<style type="text/css">

body
{
    background-color: #000;
}

</style>

from the pageview on the op link, it doesnt stop,
did you fix it already ?

hi,

just use this code above where u close your main container..

<div style="clear:both;"></div>

yehh I guess

<div style="clear:both;"></div>

this code will work..!

Almost Bob, you are a genius. Where did you learn all this stuff?

What, exactly, does clear both do? It cleared two of what?

It just clear above divs...

for ex your middle container have two divs one is float:left and other is float:right and then u r calling ur footer in single div so it just clear the above two divs for u....
u can also learn it form http://www.w3schools.com/Css/pr_class_clear.asp here...:icon_eek:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.