Eoin Maguire wrote: > Hi, > > I'm working on a layout with 2 divs floating in a container div. The two > divs float left and right so essentially they are two columns, however, I > have it designed so that they only float side-by-side when the screen > resolution expands to a certain point. The aim of this is that at 800X600 > the two divs are one on top of the other, div1 contains text, div two > contains graphics. > Scenario 1 (at 800X600) should look like this: > > <NAV> > <DIV1 floated right> > <DIV2 floated left> > > At higher resolutions div1 (the text div) slides over to the right so now > in Scenario 2 it looks like this: > > <NAV> > <DIV2 floated left><DIV1 floated right> > > > This is what I want to happen so that's fine. The problem I have is I can't > get DIV1 to automatically expand to fill whatever amount of screen area it > has.
I think this is the reason why you can't accomplish this layout with pure CSS. You can add some Javascript in the mix, though. The technique is commonly called "resolution dependent layout": http://www.themaninblue.com/writing/perspective/2004/09/21/ http://particletree.com/features/dynamic-resolution-dependent-layouts/ By the way, you probably didn't get any response to this thread because you replied to an existing thread instead of starting a new one. This buried your message, and messes up the archives. To start a new thread, please send a new message to [EMAIL PROTECTED] Thanks, 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 IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
