PDA

View Full Version : Style Switching based on Device



IanSkelskey
Feb 16th, 2010, 11:48 AM
Hey Guys,

I was wondering if there was a way, using only HTML and CSS, to switch between two stylesheets. I have two basic styles, main and mobile, and I would like for the browser to automatically detect which one is more suitable and put it in place. Little help please?

Thanks,
Ian Skelskey

VIPStephan
Feb 16th, 2010, 12:55 PM
Look into media type attributes:


http://www.w3.org/TR/CSS2/media.html
http://www.alistapart.com/articles/pocket/