Computing.Net > Forums > Programming > Auto resize webpages

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Auto resize webpages

Reply to Message Icon

Name: Axel
Date: February 24, 2003 at 00:29:53 Pacific
OS: Winxp
CPU/Ram: Athlon Tbird 656 ram
Comment:

Hi,
Can i know how to make a webapge resize automatically to the visitor's own resolution?I made a 800X600 webpage and when i used a 1024X768 resolution, my webpage doesn't occupy the whole screen.



Sponsored Link
Ads by Google

Response Number 1
Name: tech-fred
Date: February 24, 2003 at 04:15:06 Pacific
Reply:

Don't forget the users who still use
650x480.


0

Response Number 2
Name: ShutMeUpOrDown
Date: February 24, 2003 at 04:54:36 Pacific
Reply:

tech-fred has a point.

You can center the content on the browser window. The difference will be that visitors with higher resolution will get more "white" space on the left and right. Heres an example.

Or.. you could recode the site for autostretching. Heres an example.

Autostretch gives you the ability to fill the browser window but you have less control over where things appear. It is possible to determine absolute positioning for items but it usually comes at a cost. More coding/time spent dealing with browser bugs.. Plus you run back into the same problem of visitor resolution. Centering the content allows you to have control over where things are placed but you end up with "white" [unused] space on the left and right. Its a judgement call.

If your using an editor like dreamweaver or netobjects you can find a setting to center the content. If your hand coding see w3schools.com and google.com for more information.

Also.. its not neccesarily a bad thing to have unused space. 800X600 is still the typical resolution for most surfers so you might do better just to leave things as is. Experiment with background colors. This helps hide the unused space from the eye/mind :). Also.. if your content is shoved right up against the top or left.. space it out a few pixels. This also helps things look better when the content doesnt fill the browser window. Heres an example. This page looks better with the spacing. Also.. you might notice how the background color makes you forget the unused space.


0

Response Number 3
Name: muska
Date: February 24, 2003 at 06:17:53 Pacific
Reply:

Yea, Microsoft's Web site (as far as I know) does not resize accodring to the resolution. It looks just far basically on every resolution.

I do the same with my site.


0

Response Number 4
Name: Axel
Date: February 24, 2003 at 21:14:07 Pacific
Reply:

Thanks for all the help, think i'll try the centering thing


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Auto resize webpages

Can you auto-load webpage off a CD www.computing.net/answers/programming/can-you-autoload-webpage-off-a-cd/8830.html

any javascript experts here? www.computing.net/answers/programming/any-javascript-experts-here/78.html

Webpage basics www.computing.net/answers/programming/webpage-basics/7252.html