Re: [css-d] DIV behind floating element

2011-10-18 Thread G.Sørtun
On 17.10.2011 09:40, Ghodmode wrote: I've discovered that setting overflow:auto on div.banner fixes the problem, but I don't know why. This 6 year old page illustrates how "block formatting" triggered by "overflow: hidden/auto" works...

Re: [css-d] DIV behind floating element

2011-10-18 Thread Ghodmode
On Tue, Oct 18, 2011 at 7:46 PM, Alan Gresley wrote: > On 18/10/2011 9:14 PM, Ghodmode wrote: >> >> On Mon, Oct 17, 2011 at 4:08 PM, Philippe Wittenbergh >>  wrote: >>> >>> On Oct 17, 2011, at 4:40 PM, Ghodmode wrote: >>> I have a problem where a DIV is behind a floating element.  Given the >

Re: [css-d] DIV behind floating element

2011-10-18 Thread Philippe Wittenbergh
On Oct 18, 2011, at 7:14 PM, Ghodmode wrote: > A DIV is "an element in the normal flow that establishes a new block > formatting context" and its default overflow value is 'visible', > right? Yes and no. By default that div doesn't establish a new block formatting context - the condition for ove

Re: [css-d] DIV behind floating element

2011-10-18 Thread Alan Gresley
On 18/10/2011 9:14 PM, Ghodmode wrote: On Mon, Oct 17, 2011 at 4:08 PM, Philippe Wittenbergh wrote: On Oct 17, 2011, at 4:40 PM, Ghodmode wrote: I have a problem where a DIV is behind a floating element. Given the following code, the DIV.banner appears behind the DIV.logo_block at the left

Re: [css-d] DIV behind floating element

2011-10-18 Thread Ghodmode
On Mon, Oct 17, 2011 at 4:08 PM, Philippe Wittenbergh wrote: > > On Oct 17, 2011, at 4:40 PM, Ghodmode wrote: > >> I have a problem where a DIV is behind a floating element.  Given the >> following code, the DIV.banner appears behind the DIV.logo_block at >> the left edge of the page. >> >> I've d

Re: [css-d] DIV behind floating element

2011-10-17 Thread Philippe Wittenbergh
On Oct 17, 2011, at 4:40 PM, Ghodmode wrote: > I have a problem where a DIV is behind a floating element. Given the > following code, the DIV.banner appears behind the DIV.logo_block at > the left edge of the page. > > I've discovered that setting overflow:auto on div.banner fixes the > problem

[css-d] DIV behind floating element

2011-10-17 Thread Ghodmode
I have a problem where a DIV is behind a floating element. Given the following code, the DIV.banner appears behind the DIV.logo_block at the left edge of the page. I've discovered that setting overflow:auto on div.banner fixes the problem, but I don't know why. Can someone help me to understand