hessodreamy
Programmer
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
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