Eoin,
On Apr 25, 2006, at 6:13 AM, Eoin Maguire wrote:
> 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... At higher resolutions div1
> (the text div) slides over to the right... The problem I have is I
> can't
> get DIV1 to automatically expand to fill whatever amount of screen
> area it
> has.
> As this is only part of an overall layout the code is quite complex.
Did you get an answer on this? I don't think there is a 100% solution.
You are bumping up against how floats are supposed to work. You can
minimize the problem for more css compliant browsers by leaving the
width: auto; on div1 and setting max-width to the point at which you
want to the side-by-side display to trigger (something like 900px -
width of div2). Unfortunately this leaves out ie.
hth
--
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
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/