Click to See Complete Forum and Search --> : Changing .css for different screen res


joki
11-30-2003, 08:50 AM
Hi
I am trying to detect what screen resolution the user is in, and redirect the user to the correct css depending on the data given. Can someone explain to me rougly how to to it, as i use ASP and dont have a lot of knoledge in JavaScript. The css that im using is using a lot of tables with absolute positions.

Thanks
:D

gil davis
11-30-2003, 08:54 AM
I believe that ASP has access to the user's screen resolution. If so, you can do it all in ASP. Why don't you ask this in the ASP forum?

fredmv
11-30-2003, 12:25 PM
You can access the resolution in JavaScript too. Try typing this in your address bar and pressing ENTER:javascript:screen.width + 'x' + screen.height;Although, I would still recommend using CSS to create a fluid layout that works among different resolutions and browser window sizes, but that's all really up to you.