T
Tony
I seem to remember being able to do this, but I can't seem to find out
how I did it before...
Basically, I have styles defined by class in a stylesheet, and I need
to read the "width" style. obj.currentStyle.width works just fine in
IE, but Firefox doesn't recognize it.
document.defaultView.getComputedStyle(obj,null).getPropertyValue('width')
gives me the actual width (just as obj.offsetWidth does), not the width
style assigned by the stylesheet.
Because the elements are cells in a table row, the rendering of the
table is causing the actual width to vary from the assigned width
style. So, how can I get the assigned width style in Firefox (and other
browsers)?
Or am I out of luck on this?
how I did it before...
Basically, I have styles defined by class in a stylesheet, and I need
to read the "width" style. obj.currentStyle.width works just fine in
IE, but Firefox doesn't recognize it.
document.defaultView.getComputedStyle(obj,null).getPropertyValue('width')
gives me the actual width (just as obj.offsetWidth does), not the width
style assigned by the stylesheet.
Because the elements are cells in a table row, the rendering of the
table is causing the actual width to vary from the assigned width
style. So, how can I get the assigned width style in Firefox (and other
browsers)?
Or am I out of luck on this?