Previous Message
Next Message

[css-d] Re: absolute positionned child in relative floated parent

Sent by Rijk van Geijtenbeek on 18 February 2002 14:02


Hello Nico,

Don't forget this list does not allow HTML posting - please adjust you
email client.

On Saturday, February 16, 2002 you wrote:

> I can't figure if that is wrong or correct reading the docs :

> Exemple I have :
> <DIV1 pos:relative>
>  <DIV2 pos:relativ float:right>
>    <DIV3 pos:absolute 50,50>A

> In IE, DIV3 is positionned from the top left of the DIV2 even with
> float:right
> In Mozilla DIV3 is positionned from DIV1 topleft when DIV2 is floatted right
> But I read a floatted element is a block. And absolute pos element can be
> positonned from block elements.

I don't think you should mix floating and positioning. The spec says
first:

'float'
Value: left | right | none | inherit
Initial: none
Applies to: all but positioned elements and generated content

And in the next paragraph:
"It may be set for elements that generate boxes that are not
absolutely positioned." 

It would be nice if one could use relative positioning inside floats,
but the spec is not clear if this is permitted.

> I want to be sure this is a Moz bug. I am French and not sure to understand
> all the spec..

There seem to be some related issues reported as bugs for Mozilla:
  http://bugzilla.mozilla.org/show_bug.cgi?id=67543
  http://bugzilla.mozilla.org/show_bug.cgi?id=82852

But without a real test case I'm not sure about your problem.


Greetings,
 Rijk                            [EMAIL-REMOVED]

Mot du Jour:
Diplomacy: The ability to let someone else have your way.
Previous Message
Next Message