Re: [WSG] Is position:absolute legal in a floated div? relates to a Footer problem in NS7

2005-10-24 Thread Philippe Wittenbergh


On 25 Oct 2005, at 11:11 am, Ben Wrighton - StraightForward wrote:

After some testing I isolated the float: right; ( to make content 1st 
in source) and display: inline (which is in there for IE 's double 
margin bug and will be placed in a IE specific stylesheet in due 
course) styles as causing the issue. Float: right is the main culprit.


Which leads to the topic of this post.
'Is position:absolute legal (or advisable) in a floated div?'


Yes, it is completely valid to have an absolute positioned element 
within a floated block that acts as a containing block.
Some older browsers have problems with this, like Netscape 7. You'd 
have to add an additional wrapper inside your floated block to please 
those old boys. Like this






Philippe
---
Philippe Wittenbergh


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



[WSG] Is position:absolute legal in a floated div? relates to a Footer problem in NS7

2005-10-24 Thread Ben Wrighton - StraightForward

Hi all,

I know NS7 is basically dead but it also generally has complaint 
rendering. What it did to my page and my subsequent understanding of the 
problem made me wonder if the others (Ffox, IE and Opera) were just 
being more forgiving.


The issue is that the footer and BW image divs in this page 
http://www.bats.co.nz/den/ position themselves relative to the body even 
though the content div has position:relative;


After some testing I isolated the float: right; ( to make content 1st in 
source) and display: inline (which is in there for IE 's double margin 
bug and will be placed in a IE specific stylesheet in due course) styles 
as causing the issue. Float: right is the main culprit.


Which leads to the topic of this post.
'Is position:absolute legal (or advisable) in a floated div?'

Many thanks in advance,

Ben Wrighton.
**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**