On Mar 9, 2007, at 9:23 PM, Gunlaug Sørtun wrote: >> I'd like to know if Safari and Opera are right to show the space that >> is occupied by the r.p. box before it is offset. Os is Fx right, not >> making the page longer? > > If my (old) interpretation of 'overflow: hidden' is correct, then > Fx got > it wrong. I prefer Fx' way of doing it though :-) > > As I see it: > - 'overflow: hidden' means "hide overflowing part from view". > - 'overflow: hidden' does *not* mean "treat overflowing part as if it > was subjected to 'display: none'". > > My interpretation comes from the use of the word 'hidden' here. In > 'visibility: hidden' the word 'hidden' means "hidden objects aren't > visible but still take up space", so I've always thought it should > mean > the same for 'overflow'. > > However, it often makes more sense design-wise to "treat overflowing > part as if it didn't exist" - like Fx does, but we should then have > had > an 'overflow: none' variant so we could choose.
[OK, now I see where the issue is.] But the elements that are positioned relative and moved upwards on that page are not contained within blocks with overflow:hidden.... Those elements trigger a scrollbar on <body> in Safari, iCab, Opera, but not in Gecko Especially the div #entry, which is pulled upwards 365 px and has a height specified. Doesn't sound correct. --- Anyway, on overflow:hidden: From CSS 2.1, 11.1.1 [1] 'This property specifies whether content of a block-level element is clipped when it overflows the element's box.' 'clipped' is the keyword. The part of the box that is hidden shouldn't take up any space anymore. The overflow property (except 'visible') also establishes a new block formatting context (per 9.4.1), everything is contained within that box. So a block within an overflow:hidden box that overflows that box should not take up any space nor affect the surrounding layout. [1] http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow --- Philippe --- Philippe Wittenbergh <http://emps.l-c-n.com> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- 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/