Log in

View Full Version : Screen Size



alphaomega
07-03-2007, 03:51 PM
Is there a script out there that will auto ajust my web pages to what ever the screen size the user has? I create my sites on a 15" but when I look at it on a 17" not everything is in the same place.

jscheuer1
07-03-2007, 04:15 PM
No. There are scripts that will detect the users screen size and/or window size. It is actually the user's window size and font size (font-size cannot be reliably detected) that affects how you page is displayed, not their screen size. When you consider this fact, that the user can change their window size and font-size as often as they like, trying to adjust to it, on the fly, is somewhat possible with javascript but - impossible without javascript. Even with javascript, it is an involved process that must be customized to each page's unique layout. You are far better off designing your page so that it can flow into the space allotted for it on the user's end. This requires no javascript and is actually easier than figuring out how to change everything depending upon the window/font size of the user, not to mention which browser that they might be using.

Look on the web for cross browser templates/examples of fluid and of liquid layouts.

djr33
07-03-2007, 07:29 PM
Simply put, just use percentage based layouts, so it's 90% of the screen, rather than 600px wide, for example.

alexjewell
07-03-2007, 07:38 PM
And when using images, try to make the end of them flow into something that can repeat the rest of the way. For example, I make my header images 800px wide, then put a background in the body repeating across the screen, that's seamless with the end of the header image. That way, it fills the screen for anyone.

Then, with content, as djr33 said, use percentages. :)