I've been playing with CSS for smart phones for the first time. I got an HTML page where I want desktop users get one CSS file, while users of smart phones get another.
Been trying this code, based on googling the topic, but it doesn't seem to work when I test on my Sony Ericsson Arc, Android 2.3.4.
<link rel="stylesheet" type="text/css" href="screen.css" media="screen and (min-device-width: 481px)" /> <link rel="stylesheet" type="text/css" href="handheld.css" media="only screen and (max-device-width: 480px)" /> <link rel="stylesheet" type="text/css" href="handheld.css" media="screen and (-webkit-device-pixel-ratio:0.75)" /> <link rel="stylesheet" type="text/css" href="handheld.css" media="handheld" type="text/css" />
The full page HTML is at this page: http://www.thomthom.net/qr/photos/
At the moment I've commented out the snippet you see above so it only serves the handheld stylesheet.
But how do you serve CSS to smartphones specifically? The media queries doesn't seem to do anything.
My first thought was that media type "handheld" was how you did it, but as it turns out smart phones uses the "screen" media style. But then the min-device properties should've worked, right?
Help

















