PDA

View Full Version : changing default style based on users screen resolution


lightnb
06-19-2006, 09:51 PM
Yesterday, I showed my website to my aunt on her computer. I was horrified to find that everything was so massively oversized, that it was painful to navigate. You had to scroll sideways as well as up and down, and the mast head took up the whole screen.

I’ve designed my site for 1600 x 1200 or 1280 x 1024. Her resolution is 800 x 600.

If I scale it down to fit correctly on the 800 x 600 resolution screens, it becomes ultra-tiny, on my monitor.

My first impulse was to create a program that changes the resolution of the user’s computer to something halfway descent when the site loads. (Computer games do it, why can’t I?)

But I figured my users would appreciate a less invasive approach.

Is it possible to write a hack that checks the screen resolution of the users default monitor, and then selects a style based on that?

I searched briefly for this but didn't find anything?

Thanks,

Nick