Ido dekkers wrote: > is there a way to make div2 below take the entire remaining space of > container if i don't know how wide div1 will be? > > all of them are positioned relative and float to the left? > > > <div id="container"> > <div id="div1"> > </div> > <div id="div2"> > </div> > </div> > > Thanks > > Ido
Don't float or position the child divs. Just give a percentage width to the last child element. #container {float:left;} #div1 {background:lime;} #div2 {background:red;width:100%;} -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/