
July 15th, 2000, 03:01 AM
|
|
Junior Member
|
|
Join Date: Jul 2000
Location: Auckland, New Zealand
Posts: 9
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Okay, heres the situation.. I'm trying to access the height value of a DIV element in IE5, via alert(document.all.body.style.height); from an onload.. I get an empty alert box, ie (I think  ) it returns "", which is not null because usually "undefined" is returned I think.
body = name of the DIV which is the body of my page. Also have head / foot DIV elements.
Whats weird is that when I access head.style.height it returns "97px" which is fine. <shrug>
I'm trying to access the height of the body so that I can calculate the required top for my foot DIV element to go underneath it.. but seeing as IE is not being responsive I think I might have to merge the footer into the body which kind of defeats the purpose  .
The body DIV element consists of 3 div elements themselves which each contain a table of differing hieght. Could this possibly be a factor? (The plan is to link the code from the table via include in PHP so I change the text in the body without affecting the layout).
Any ideas? 
Rgds, Ravikesh.
|