ChrisB: Zugriff auf CSS-direktformatierte Elemente

Beitrag lesen

Hi,

div.text > div > div[style~="left;"]{...}

funktioniert im Firefox. Häh? Was ist mit dem Doppelpunkt von "style:"?)

Welcher Doppelpunkt von Style?

div.text > div > div[style|=float]{...}

“Represents an element with the att attribute, its value either being exactly "val" or beginning with "val" immediately followed by "-" (U+002D).” [CSS21 §5.8.1]

Nach "style" steht kein "-" (U+002D).

Nach style soll auch keins stehen, denn style ist das att attribute, und das "-" ist auf value bezogen.
Funktioniert hier also auch nicht, weil hinter dem float kein - kommt; aber eben aus anderem Grund.

MfG ChrisB

--
Light travels faster than sound - that's why most people appear bright until you hear them speak.