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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting full screen window size

Status
Not open for further replies.

hessodreamy

Programmer
Feb 28, 2005
59
GB
I'm working on a site which has a bit of a dodgy tabled layout. When the browser window gets too small the layout goes really bad.
As a quick fix, I thought i'd fix the size of the tables to full screen width, and this is where I ran into problems.
window.width gives the full screen resolution, but not the available width and doesn't take scrollbars and stuff into account.
I had a script for availble width and was going to sit down and work out full screen width for various resoltions, but that wasn't working and there surely must be a better way?
Any ideas? Browser-safe code would be welcomed!!
Cheers
 
Have you tried clientWidth?

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Browser-safe code would be welcomed!!

Instead of what? Code that totally wrecks your browser? I know of none that would do that ;o)

Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top