Hallo,
Die Angaben float:right und display:inline widersprechen einander. Laut Spezifikation sollte der Browser display allerdings automatisch auf Block setzen, wenn float ungleich none angegeben wurde. Das macht der IE wahrscheinlich nicht.
_müsste_ er das denn, wenn _nach_ dem float nochmals explizit display:inline definiert wird - oder dürfte er dann sogar so handeln wie er's offenbar tut, da die zuletzt notierte angabe die implizite display-angabe durch float wieder überschreibt ...?
Ja, ich denke das sollte er wie die anderen Browser machen, denn:http://www.w3.org/TR/CSS2/visuren.html#q24 ist für mich eindeutig:
The three properties that affect box generation and layout -- 'display', 'position', and 'float' -- interact as follows:
1. If 'display' has the value 'none', user agents must ignore 'position' and 'float'. In this case, the element generates no box.
2. Otherwise, 'position' has the value 'absolute' or 'fixed', 'display' is set to 'block' and 'float' is set to 'none'. The position of the box will be determined by the 'top', 'right', 'bottom' and 'left' properties and the box's containing block.
3. Otherwise, if 'float' has a value other than 'none', 'display' is set to 'block' and the box is floated.
4. Otherwise, the remaining 'display' properties apply as specified.
Punkt 3. trifft zu, damit wird Punkt 4. hinfällig. (*g* Das erinnert an eine frühere Diskussion hier.[1])
viele Grüße
Axel
[1] Danach sollte es besser heißen:
Punkt "Otherwise, if 'float' has a value other than 'none', 'display' is set to 'block' and the box is floated." trifft zu, damit wird Punkt "Otherwise, the remaining 'display' properties apply as specified." hinfällig.
*scnr*