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

scale to fit browser window

Status
Not open for further replies.

cobrien11

Technical User
Jul 14, 2000
110
Hi there,

Can anyone tell me how to make my web page scale to the size of the browser window while keeping it in proportion?

When I place everything inside a table and set the table width/height to 80% the browser destorts the page so that it's 80%H and 80%W. I need to keep it in proportion, I've tried only nominating a width but I've had no luck.

Any help would be greatly appreciated,
Clayton.
 
Generaly I tend to build to a set size- usualy 800x600 (760x420) and for anything that needs to extend- the very outside table is set to 100%. This allows for headers to span the entire width of the page, and if you want to get smart you can add extra collums past the main content.
Building to allow it to resize to fit all browser sizes means you have to accept that the content will shift.
You can build a set sized content table, and then "float" the outside table- but your content won't expand to fill the page then.
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top