HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 15th, 2000, 03:01 AM
r-c r-c is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Auckland, New Zealand
Posts: 9 r-c User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to r-c
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.

Reply With Quote
  #2  
Old July 17th, 2000, 11:12 PM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to rkmarcks
I've always been under the impression that the body does not have a height.

(On the other hand, I didn't think that head had a height either.)

Also, remember that Netscape does not support the style tag to the same extent as IE. You may have problems with cross browser compatibility.

Russ

Reply With Quote
  #3  
Old July 17th, 2000, 11:49 PM
JKB JKB is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Roseburg, OR, USA
Posts: 23 JKB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
my guess would be that you cannot name a DIV 'body' did you try using a different name for ID?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > object.style.height problem :/


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway