FWIW I have some information on getting content size in NS6. It's not a
total solution, though.
In both NS6 and IE5/5.5, you can do this:
w = layer.offsetWidth
h = layer.offsetHeight
These are not part of W3C's CSS spec, and they're not in the .style
property of the element.
layer.offsetHeight is pretty accurate for getting the height of a layer
you haven't explicitly set a height value for. However, offsetWidth
always ends up giving you the width of the parent element, because
relatively positioned DIVs tend to stretch width-wise, filling the area
of their parent. So there is no "offset" difference.
For example, I ran a test:
<div id="myDiv">Hello</div>
The values come out to be:
offsetWidth = 1162
offsetHeight = 19
offsetHeight is correct, but offsetWidth is the width of the document
(my browser window), which is the <DIV>'s parent.
Hope that helps somebody.
scottandrew
--
scott andrew lepera
-----------------------------------
web stuff: www.scottandrew.com
music stuff: www.walkingbirds.com
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev