Updated 9/16/5

View source to see how it is done. Note that the style is now obtained using my getCSSAtt function. The style attribute of a DOMElement (the one referenced by obj.style) will only list values that were explicitly given by a javascript and not CSS class styles. The getCSSAtt function will use either the currentStyle attribute of a DOMElement or document.defaultView.getComputedStyle function to find the value, regardless of how the style attribute was set

The javascript code embedded in the CSS (in the problemDivFix class) cannot be embedded in the style attribute with javascript ironically, so that has to be done in a CSS class statement

Back to buggy page
A div styled 300px by 300px by javascript
This div should be 200px by 200px because of an offset of 50px from every side. Styled with javascript.


A div styled 300px by 300px by CSS
This div should be 200px by 200px because of an offset of 50px from every side. Styled with CSS.
Hosted by www.Geocities.ws

1