Hi.. I’m new to these forums so please be gentle ?
I’ve been given the task of creating a Ecommerce site for a new London based clothing distributor.. and I’m basically trying to build this myself from the ground up.
Basically I want this site I’m producing to use a different stylesheet depending upon the users resolution, I am trying to use JavaScript to detect the user’s resolution.
At present I have tried a few different methods including a Javascript redirect to specific pages, however this would mean a different html page for each resolution.. which would be a messy way of working.
So I figure that having multiple stylesheets configured to specific resolutions would be the way to go.
I am aware that you can assign an “onclick” event to switch to a different stylesheet.. but is there a way of doing this automatically uopn loading?
I have viewed many websites and posts across forums regarding this.. but my Javascript knowledge is very low.. could someone explain how to do this?
I’m not asking for the answer.. but the method required.
Thanks for your time,
Ray