hambam: Auslesen von CSS-Attributen mit dem IE, einfach?

Beitrag lesen

Hallo Martin !

The pixelLeft property reflects the value of the cascading style sheets (CSS) left attribute for positioned items. The property always returns 0 for nonpositioned items, because "left" has meaning only when the object is positioned. Use the offsetLeft property to calculate actual positions within the document area.

Wenn ich das richtig verstehe, liefert "left" immer dann 0, wenn das Objekt noch nicht positioniert wurde. Ich denke, das mache ich aber.
Nichtsdestotrotz probierte ich mal dieses offsetLeft aus, aber der Rückgabewert ist dann
undefined.

So sieht die Style-Definition aus:

#copyright {position:absolute; text-align:center;z-index:100;}

hambam