[thelist] JS/DOM: height or bottom of a div?

Michael Pemberton mpember at phreaker.net
Sun Aug 26 20:33:36 CDT 2001


Most of the browsers that suypport js should allow you to calculate the
bottom by adding the Y value to the HEIGHT value.  Sorry about the lack
of detail.  Hope this is a step in the right direction.

Frank wrote:
> 
> I'm using CSS positioning for my site, and I want the footer div to sit
> below the content div. Since the content div will always be changing sizes,
> I'm trying to get at it's height, or it's bottom, so that I can calculate
> where to put my footer.
> 
> Reading the DOM 1 spec, I see that the only attribute that DIV has is
> ALIGN. Bummer. Can someone suggest a manner in which I can find out where
> the bottom of a given div is?
> 
> Thanks.
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !

-- 
Michael Pemberton
mpember at phreaker.net
ICQ: 12107010





More information about the thelist mailing list