
Signature
Rijk van Geijtenbeek
The Web is a procrastination apparatus:
It can absorb as much time as is required to ensure that you
won't get any real work done. - J.Nielsen
> > While working on <http://www.lotzofmusic.com/> I ran into some issues
> > with overflow (the decorative fishes). It seems to me the construction
> > is sound, yet Safari ignores the overflow:hidden.
Well, that is to say, I just noticed that when I remove the float:left
from the enclosing DIVs, suddenly Safari and even Mac IE 5.2.3 and Win
IE5.5 behave they way I hoped for (except for the hover effect, but
that's secundary), Mozilla still does too, but then Opera 7.5.4 and iCab
3.0 don't... They only the first DIV, and show white space in the place
of subsequent DIVs.
See <http://santek.no-ip.org/~st/lom/> (where the only difference is
that the SPANs' enclosing DIVs have no float:left.)
Now I'm confused again... :) Which is the correct behaviour in both
cases?
[...]
[<http://santek.no-ip.org/~st/tests/CSS/overflow_hidden.php>]
> The test-case behaves exactly like you describe (and like Firefox behaves)
> in my WinOpera 7.54. Same for the fishes (but they show up randomly,
> right?).
Correct. They're all swimming around in this nice big fish tank on the
server. When the page is requested, there's a little guy that quickly
catches some of them for you ;)
> Opera 7.5x indeed needs defined widths for floats inside floats,
> a bug that will be fixed in Opera 8.
Very good :)

Signature
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>
Sander Tekelenburg - 30 Dec 2004 05:17 GMT
[...]
> > > While working on <http://www.lotzofmusic.com/> I ran into some issues
> > > with overflow (the decorative fishes). It seems to me the construction
[quoted text clipped - 9 lines]
> See <http://santek.no-ip.org/~st/lom/> (where the only difference is
> that the SPANs' enclosing DIVs have no float:left.)
Someone pointed out to me why, and I think it makes sense. When the DIV
doesn't float, its SPANs are allowed to float outside of the DIV, in
this case floating into the next DIV. Add to that that the DIVs have set
overflow: hidden, those SPANs should be hidden, but because they also
'push away' the SPANs of the other DIVs, they too should get hidden.
So (aside from Opera's reliance in the SPANs' explicit width) it seems
that Opera and iCab's behaviour is correct and that Mozilla, Safari and
IE's is wrong.
Test-case at <http://santek.no-ip.org/~st/tests/CSS/overflow_hidden.php>
updated.
(dis)agreement welcome :)

Signature
Sander Tekelenburg, <http://www.euronet.nl/%7Etekelenb/>