Adriano: Fehler bei FF

Beitrag lesen

Wow... Danke!
Sehr gut geschrieben und hast mir auch recht geholfen!

Ich hab eben bei 'margin' die folgende Zeile gelesen:
Initial: not defined for shorthand properties

Also wenn ich dieser Kapitel lese (für margin):
http://www.w3.org/TR/REC-CSS1#horizontal-formatting

steht folgendes:

  • The horizontal position and size of a non-floating, block-level element is determined by seven properties
  • By default, the 'width' of an element is 'auto'
  • If none of the properties are 'auto', the value of 'margin-right' will be assigned 'auto'.

Und zusätzlich gilt: "if both 'margin-left' and 'margin-right' are 'auto', they will be set to equal values. This will center the element inside its parent"

Also mit der letzte Aussage gilt doch, dass es ohne Angabe, margin ein Wert von auto hat oder?