On Friday, July 16, 2010 6:40:11 pm TriState Advantage, Kris Jacobson wrote: > Thank you, this worked but I don't understand why. I went back to my > references and they said the overflow property is for when the content is > larger then the settings on the space allows. But I had the settings of > the box at auto. If I add more content to the box then will it be hidden > as this is the area I will be adding to? >
Overflow: hidden is a funny thing. If you apply overflow: hidden to the body tag, then if your page goes outside of the window, it won't scroll. But on anything else, in order for things to be hidden by overflow: hidden, you need to specify dimensions (height especially). Since you have overflow: hidden on your container, but no height, it makes the container expand to fit everything in it (including floats, which is nice because those aren't usually contained, since they're out of the normal flow). I believe that any non-auto overflow value will do this, but with overflow: scroll you get scrollbars, even if you don't need them. I haven't looked at your page, but my guess is that your footer was floated, so the background wasn't showing up because the footer was outside of your container, but now you get the background because the float is inside the container. ---Tim ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
