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,
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,
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
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;
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
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
*
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
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
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
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
10 matches
Mail list logo