Re: [WSG] Why DO floats not stretch their containers?

2005-02-11 Thread Gunlaug Sørtun
Andreas Boehmer wrote: Can you give an example of where standard-compliant browsers expand the outer container with a float as content? I believe Roger pointed to the almost perfect example: < http://www.complexspiral.com/publications/containing-floats/ > Myself, being a "heavy user" of floats, si

Re: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread Roger Johansson
On 11 feb 2005, at 00.17, John Horner wrote: My question is, *why* is the correct behaviour the first one? It takes a lot of people by surprise and they often see what IE does as the natural and obvious thing to do. I'm not trying to start a flame war, I really want to know! Eric Meyer's Contain

Re: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread Andreas Boehmer
> Josh McDonald wrote: > >> Sorry, I can't test my statement here, so if I am wrong please > >> correct me, but as far as I remember taking out the set height (or > >> min-height) of Div B will reduce Div A to 0 height. Floating Div B > >> has got a similar effect to giving position:absolute - D

Re: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread Gunlaug Sørtun
Josh McDonald wrote: Sorry, I can't test my statement here, so if I am wrong please correct me, but as far as I remember taking out the set height (or min-height) of Div B will reduce Div A to 0 height. Floating Div B has got a similar effect to giving position:absolute - Div A will ignore the

Re: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread John Horner
At 1:01 PM +1000 11/2/05, Josh McDonald wrote: I've got assloads of   to get around this. It's not just you! Why is that the (in some quarters) recommended solution, rather than just the break tag, with appropriate CSS to make sure it clears? ...and already we're off-topic. -

Re: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread Josh McDonald
Yeah that's true, a float won't expand its container, I've got assloads of   to get around this. On Thu, 10 Feb 2005 18:07:51 -0800, Andreas Boehmer <[EMAIL PROTECTED]> wrote: > > John Horner wrote: > > > * floated elements too big for the enclosing element "spill out" > > > * except on IE, whe

Re: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread Andreas Boehmer
> John Horner wrote: > > * floated elements too big for the enclosing element "spill out" > > * except on IE, where they stretch the enclosing element > > > > that's a bit simplified, but essentially correct, right? > > > My question is, *why* is the correct behaviour the first one? It > > tak

Re: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread Gunlaug Sørtun
John Horner wrote: * floated elements too big for the enclosing element "spill out" * except on IE, where they stretch the enclosing element that's a bit simplified, but essentially correct, right? Right. For instance, with this code: DIV A DIV B DIV B will overlap DIV A and c

RE: [WSG] Why DO floats not stretch their containers?

2005-02-10 Thread Seona Bellamy
n Horner > Sent: Friday, 11 February 2005 10:17 AM > To: wsg@webstandardsgroup.org > Subject: [WSG] Why DO floats not stretch their containers? > > > This is more of a philosophical question than a technical question, > but here's the background. As we probably all know:

[WSG] Why DO floats not stretch their containers?

2005-02-10 Thread John Horner
This is more of a philosophical question than a technical question, but here's the background. As we probably all know: * floated elements too big for the enclosing element "spill out" * except on IE, where they stretch the enclosing element that's a bit simplified, but essentially correct, rig