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

site proportioned to monitor resolution

Status
Not open for further replies.

bch33

Technical User
Joined
Oct 13, 2001
Messages
151
Location
US
Just wondering how to make my site come up in a smaller window when people use different resolutions than 800x600 on their computers.
Right now I notice if I knock up the resol. to anything above 800, everything on my site becomes smaller of course, but the page still stretches the whole length of the window with the content all at the top.

I have opened many sites in different resolution and they come up in a smaller window that keeps the page proportioned.
Any ideas how to achieve this?

Thanks
bch
 
Create a table with a fixed width of 800 pixels and center it on your page, and place your content in this table. If the browser is larger, you'll get blank space on the sides, but will maintain your 800 pixel width, centered in the screen.

The only problem with this is that if the browser is set smaller than 800, there will be horizontal scrolling... which is bad.
 
thanks for the help- will try
bch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top