Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Positioning in IE
- From: hakan at backbase.com (Hakan Magnusson (Backbase))
- Subject: [Javascript] Positioning in IE
- Date: Thu Jul 29 08:24:26 2004
A final correction on your stream of incorrect statements: > posLeft is a direct instruction and that's why it is faster than > pixelLeft, because pixelLeft adds or substracts from the existing value > and while doing so it consumes some processing power. > posLeft will simply overwrite the old value, thats why it is a bit faster. No. posLeft will use whatever unit previously specified. Meaning that if you have something positioned 40% from the left, and change the posLeft with +10, it will then be positioned 50% from the left. The pixelLeft property, however, always uses pixels as the unit. I hope this clear things up for anybody who was wondering. > Are we getting smarter and smarter... Well, are we? Regards, H
- References:
- [Javascript] Positioning in IE
- From: Troy III Ajnej
- [Javascript] Positioning in IE
- Prev by Date: [Javascript] Positioning in IE
- Previous by thread: [Javascript] Positioning in IE
- Next by thread: [Javascript] FW: whats wrong
- Index(es):