Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: hi Jim! Resizing a web page to fit different screens


Message #1 by "afshin nejad" <afshin777@h...> on Tue, 17 Apr 2001 18:13:04
At 4/17/2001 06:13 PM, you wrote:
>Hi Jim                           04/17/2001
>
>These are the design rules:
>
>1- Design your site based on 800x600 pixels.( NO body is using 640x480 
>that was 1995 not 2001)

Afshin,

I'm not doubting this "rule" is valid for you, but it isn't necessarily so 
for all sites.

I won't go into all the reasons why it can be considered wrong, but here 
are a couple - people who don't browse full screen, people connecting with 
handheld devices (or webTV).

>2- Use percentage(%) instead of static pixel size for width of your table 
>and td.( if you use width=100% for your table it covers entire screen 
>regardless of screen resolution)
>3- If you have DHTML you can use JavaScript x. & y. controller to check 
>the visitor screen resolution, and call a function to modify the layer of 
>your page.

2. is a better approach. It's probably better than 3. as it doesn't rely on 
assumptions that users will have Javascript enabled, etc.

>5- Always check you site for Netscape 4.0 version. You can not believe how 
>many big CORP sites do not working properly in NETSCAPE.

Yes, always a good idea to test in major browsers expected to visit your 
site. You can sometimes determine which these are by checking site logs.

For the most part, the equivalent support for IE and Netscape 4.0 and up, 
Opera if desired, is fair. Of course a properly structured site will 
degrade gracefully even in a version 1 browser.

regards.
-marc

  Return to Index