I'd like to say that I have read and tried many variations of the instructions here:

I would like to have my page use different CSS files depending on the device being used. I have seen many solutions to this, all using some form of the above.

However, when testing on an HTC Desire I consistently get either the output intended for iPad or a completely unfiltered output. Currently, my test code is based on:

http://www.cloudfour.com/ipad-css/

Here is my HTML file:

<html>
<head>
    <title>orientation and device detection in css3</title>

    <link rel="stylesheet" media="all and (max-device-width: 480px) and (orientation:landscape)" href="iphone-landscape.css" />
    <link rel="stylesheet" media="all and (max-device-width: 480px) and (orientation:portrait)" href="iphone-portrait.css" />

    <link rel="stylesheet" media="all and (device-width: 768px) and (device-height: 1024px) and (ori
Edit
Report