Hello out there!
Ich komme immer nur wieder auf 1011 - hilfst du mir weiter drauf?
'width' und 'height' stehen im 'style'-Attribut. (Warum eigentlich? 'style'-Attribute sind blöd; sie trennen nicht Struktur und Layout, was ja der Sinn von CSS ist.) “[…] values of an element's "style" attribute […] have no selectors, so a=1, b=0, c=0, and d=0.” [CSS21 §6.4.3] (Sagte ich doch schon.) Macht also 1000.
'clear', 'display' und 'margin' hingegen wissen nichts von einem 'style'-Attribut. (Sagte ich doch schon.) Die Spezifität der Angaben für 'clear', 'display' und 'margin' ist eine andere als die für 'width' und 'height'. (Sagte ich doch schon.) Der Selektor ist 'img.mittig', ein Element, ein Attribut: a=0, b=0, c=1, and d=1. Macht also 0011.
See ya up the road,
Gunnar
„Und [dieses Forum] soll […] auch ein Fachforum bleiben und kein Psychologieforum werden.“ (Kirsten Evers)