Screen Resolution


Author Message
S Dawkins

Posted: 3/17/2009
Quote message 

Not sure if I can explain this right, but does anyone know code to add to the header of a template to have the browser check the persons resolution and then use a certain style sheet.

I was proud of myself I made a pretty nice theme but realized it doesn't load right unless resolution is over 1200.

This is the url www.traac.net, if your screen is under 1200 (such as 1024x600) this is what it SHOULD look like http://www.traac.net/screenshot.jpg
 
Marc Smith

Posted: 3/17/2009
Quote message 

Good tutorial on javascript for setting screen resolution.

Unfortunately, you may have trouble getting it to work with Wordpress.

http://www.pageresource.com/jscript/jscreen.htm
 
S Dawkins

Posted: 3/17/2009
Quote message 

Thanks Marc,
I knew I had seen something about it in the past but couldn't remember how to search for it.
Will give it a whirl and hope it will work for WP.
 
Lance

Posted: 3/17/2009
Quote message 

The author here has some scripts for calling different CSS files based on screen resolution:

http://particletree.com/features/dynamic-resolution-dependent-layouts/