Re: [css-d] Page layout in a container
Alternatively, make the #container expand enclose its floated contents. This shows one way of doing it: www.positioniseverything.net/easyclearing.html Chris On 1/25/06, Roger Roelofs [EMAIL PROTECTED] wrote: Mike, On Jan 24, 2006, at 8:41 PM, Mike Tuller wrote: I am trying to design a page that has a set container that adjusts when you change the size of the page. I am using float, and I am having a problem where the background does not show up when you use a table. In my case, for a form. Can someone explai to me why the background is not white as I have set in the container? Why is it that if I change float to relative for the form does the background then work? A url is much better than pasted in code. In your case, I'm betting that everything in #container is floated. When this is the case, #container no longer has any content, so it collapses to a hieght of 0, ergo, no background-color. Either float the container or unfloat some of the contents. -- Roger Roelofs Remember, if you're headed in the wrong direction, God allows U-turns! ~Allison Gappa Bottke __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Page layout in a container
Chris Ovenden wrote: Alternatively, make the #container expand enclose its floated contents. This shows one way of doing it: www.positioniseverything.net/easyclearing.html And other ways of containing floats are explained on this page: http://css-discuss.incutio.com/?page=ClearingSpace There's also a link there to Containing Floats by Eric Meyer that explains why floats aren't contained in their parent elements. Good read. Zoe -- Zoe M. Gillenwater Design Services Manager UNC Highway Safety Research Center http://www.hsrc.unc.edu __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Page layout in a container
Mike, On Jan 24, 2006, at 8:41 PM, Mike Tuller wrote: I am trying to design a page that has a set container that adjusts when you change the size of the page. I am using float, and I am having a problem where the background does not show up when you use a table. In my case, for a form. Can someone explai to me why the background is not white as I have set in the container? Why is it that if I change float to relative for the form does the background then work? A url is much better than pasted in code. In your case, I'm betting that everything in #container is floated. When this is the case, #container no longer has any content, so it collapses to a hieght of 0, ergo, no background-color. Either float the container or unfloat some of the contents. -- Roger Roelofs Remember, if you’re headed in the wrong direction, God allows U-turns! ~Allison Gappa Bottke __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/