Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I find the pixel Height/Width of a frame?

Status
Not open for further replies.

JNeave

Programmer
Jan 28, 2002
125
0
0
GB
My page looks like

Code:
          Banner
---------------------------------
      |
      | Information
      |
 Nav  |
      |
      |
      |
      |
      |

There are (usually) three div's in the informatin frame, a header, footer and data section. I want to be able to dynamically set the position of the footer to be at the bottom of the page, regardless of the users resolution. So I need to find the vertical size of the Info frame in pixels.

I've tried window.parent.frames("Info").screen.availHeight,

But this just returns 768 (1024x768), which isn't even what it's supposed to do (MS Books sais it's meant to return the height of the screen minus toolbar size?).

I'm running MSIE5.0 and Win2000.

cheers,

Jim.
 
I would say either just make another frame or just keep the footer a few lines under the "data" section and it should look fine but there should be a way to do it... try some css
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top