Re: how to get the height of an element
by "Justin H." <justinh(at)whidbey.net>
|
Date: |
Thu, 29 Mar 2001 10:32:11 -0800 |
To: |
"HWG Style" <hwg-style(at)hwg.org> |
References: |
hotmail |
|
todo: View
Thread,
Original
|
|
HA! As usual, the easy answer eludes me. ;-)
For basic positioning data, .offsetHeight/Width/Left/Top works fine.
Justin H.
----- Original Message -----
From: "Dean Kelshall" <deankelshall(at)hotmail.com>
To: <hwg-style(at)hwg.org>
Sent: Thursday, March 29, 2001 8:53 AM
Subject: Re: how to get the height of an element
> Hi Jason,
> Try using
> document.getElementById(some_id).offsetHeight
>
> Note that this element is NOT a child of the style element.
>
> Cheers,
> Dean.
>
>
> >From: Jason Blair <jason(at)bcs-inc.com>
> >To: hwg-style(at)hwg.org
> >Subject: how to get the height of an element
> >Date: Thu, 29 Mar 2001 11:30:04 -0600
> >
> >Hi everyone. I'm new to the list, so sorry if this question has been
> >asked previously.
> >
> >Does anyone know how to get the height of an element where its
> >height hasn't been explicitly set? This was possible in Netscape4
> >browsers, but I can't seem to get it in Netscape6. For example,
> >in Netscape4 I could ask:
> >document.layers[some_number].document.height,
> >and it would return the height of that element (in my case a DIV tag).
> >However, with Netscape6 the call:
> >document.getElementById(some_id).style.height doesn't give a height
> >because I have not explicitly set it (I can't).
> >
> >Thanks in advance, and sorry for the beginner question.
> >
> >jason
> >
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA