Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sbryan

macrumors member
Original poster
Jun 6, 2007
96
0
I'm aware that alternating style sheets exist and I can control them with some Javascript, however, I don't think this will work for the kind of content I have on my website, namely:

  • Different sized buttons exhibiting a rollover image
  • Different size gallery thumbnails with different links to images

So is it possible to use a script to reroute users to /mysite/large and /mysite/small based on their desktop resolutions? (Large being equal to 1280x1024 or larger)

Thanks!
 
There are indeed ways (as linked above). Just realize people don't always use their browsers at full screen, especially Mac users so you'll want to detect smaller sizes. Also, so it's clear you'll be detecting the browser window size, and not the computer screen resolution.
 
I am wondering something similar ...

My question is: Can you tell it to use a different stylesheet based on resolution rather than a different page?
 
I am wondering something similar ...

My question is: Can you tell it to use a different stylesheet based on resolution rather than a different page?

Yup, just look up style sheet switcher and tie that to a screen resolution detecting script and in you're in business.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.