>> Is there a way to determine the height of the following div.
>
> In DOM compatible UAs, Element.offsetHeight is your friend.
/Richard Cornford/:
>>> Is there a way to determine the height of the following div.
>>
[quoted text clipped - 5 lines]
> (and is very useful) and it is not part of current (Level 2) DOM
> specifications.
Hm, isn't 'ViewCSS.getComputedStyle' part of the DOM Level 2 Style
specification, meant for just that? The core DOM interfaces aren't
meant to deal with visual presentation issues, anyway.

Signature
Stanimir
Richard Cornford - 30 Jan 2005 18:49 GMT
> /Richard Cornford/:
>>>
[quoted text clipped - 11 lines]
> specification, meant for just that? The core DOM interfaces aren't
> meant to deal with visual presentation issues, anyway.
And this is relevant to the use of offsetHeight because ... ?
Richard.
Stanimir Stamenkov - 30 Jan 2005 18:59 GMT
/Richard Cornford/:
>> /Richard Cornford/:
>>
[quoted text clipped - 9 lines]
>
> And this is relevant to the use of offsetHeight because ... ?
I was trying to make argument that obtaining the actual height of an
element is part of the DOM Level 2 (although no the core)
specification, but I was wrong. :-)

Signature
Stanimir
Richard Cornford - 30 Jan 2005 19:24 GMT
> /Richard Cornford/:
>>> /Richard Cornford/:
[quoted text clipped - 16 lines]
> an element is part of the DOM Level 2 (although no the core)
> specification, but I was wrong. :-)
So not relevant to the use of offsetHeight at all. ;)
However, where supported (and tanking variations in implementations
(their completeness and the interpretation of the more ambiguous parts
of the DOM spec) into account) - getComputedStyle - can be used to
acquire information about the height of an element. But it is necessary
to understand how CSS relates to the absolute size of the resulting
element. For example, offsetHeight would include the borders of an
element, while CSS height would specify the height inside the borders
(by CSS specification), not including the (top and bottom) border
widths. Padding, margins, the various display property types, etc, need
to be taken into account when using computed styles to acquire position
and size information.
Richard.
Stanimir Stamenkov - 30 Jan 2005 18:55 GMT
/Stanimir Stamenkov/:
> /Richard Cornford/:
>
[quoted text clipped - 7 lines]
> specification, meant for just that? The core DOM interfaces aren't meant
> to deal with visual presentation issues, anyway.
My bad: the computed is not the same as the actual value
<http://www.w3.org/TR/1998/REC-CSS2-19980512/cascade.html#computed-value>.
But the second sentence still holds. The actual height would be
dependent on the specific style language/layout engine
implementation, which if not CSS based would use different
interfaces to that info.

Signature
Stanimir
> offsetHeight is a Microsoft proprietary property
> of elements (introduced in IE 4) that has been adopted by other
> browsers
Whoa, yes.
ciao, dhgm