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,

[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,

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

2005-02-10 Thread Seona Bellamy
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: * floated elements too big for the enclosing element spill out * except

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 style=width:300px;height:100px;border:1px solid black;

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 takes a lot of

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 div class=clearbothnbsp;/div 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 *

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 div class=clearbothnbsp;/div 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

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 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 - Div A will

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