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

site view proportioned to monitor res.

Status
Not open for further replies.

bch33

Technical User
Oct 13, 2001
151
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 resolution to anything above 800, everything on my site becomes smaller of course, but the page still stretches the whole length of the monitor window with the content all at the top.

I have opened many sites in different resolutions and they come up in a window much smaller than the monitor.
That keeps the page looking much more proportioned.
Any ideas how to achieve this?

Thanks
bch
 
Hi

Since most of the data is, hopefully in tables, you can control the size of the table with the WIDTH attribute. To keep the pages in proportion to the users resolution, you can set the WIDTH in percentages <table width = &quot;100%&quot;>
Where you need to keep the page fixed use pixels to limit the width to certain sizes <table WIDTH = &quot;600&quot;>

This calll also filter down to the TD level <TD WIDTH=100> or even with a CSS sheet to control the size.

hth
Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
thanks for the help
appreciate
bch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top