The best way to do this is to use php to return another css for different browsers.
Example:
<?php header("Content-type: text/css"); $browser = get_browser(); if($browser['platform'] == 'iPhone') readfile("iPhone.css"); else readfile("normal.css");
Edit:
You can do this on the client side. to detect client in javascript you can use
if(navigator.userAgent.match(/iPhone/i))
or something similar for other platforms. To enable specific css, you need jQuery to include many plugins, and then use:
$.include('somecss.css');
Together:
<script> if(navigator.userAgent.match(/iPhone/i)) $.include('iPhone.css'); else $.include('Other.css'); </script>
source share