355
Comment:
|
523
|
Deletions are marked like this. | Additions are marked like this. |
Line 10: | Line 10: |
style.width is a read/write property of an element, | style.width is a read/write property of an element and is the width of the content area of the object. offsetWidth is a read-only property and means the effective width of the element including padding of the element. |
Demo for the invalid interpretation of the CSS box model by internet explorer < 6
[http://search.mpi-sb.mpg.de/markus/examples/box-modell/test1.php Test 1]
[http://search.mpi-sb.mpg.de/markus/examples/box-modell/test2.php Test 2 (quirks mode)]
style.width versus offsetWidth
style.width is a read/write property of an element and is the width of the content area of the object.
offsetWidth is a read-only property and means the effective width of the element including padding of the element.