Previous Message
Next Message

Two column layout and IE float bug

Sent by Gunlaug_Sørtun on 28 September 2005 05:05


Scott Goldstein wrote:
> If the width of the browser window is reduced until a point smaller 
> than the content within the float container, the content within the 
> float container will shift below the float.

That's the old 'auto-expand containers to give space for content'.
It is part of the MSIE hasLayout[1] construction/bug. Messy stuff, as
the bug can be used to fix layouts and/or destroy layouts.

> The desired behavior is for the content to remain in place to the 
> right of the float and simply overflow beyond the right side of the 
> browser window (i.e. be hidden).

Adding 'overflow-x: hidden;' to the container will control it sideways,
and achieve what you're asking for in _most_ cases.

	Georg

[1]http://www.satzansatz.de/cssd/onhavinglayout.html
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: