Click to See Complete Forum and Search --> : if ie use ie.css if safari use safari.css


mthor
02-27-2009, 01:14 PM
I am designing a web site for mobile phones and I want the site to look good across all platforms. so I have a css for Iphone/Android/smartphones andthen I have a separate style sheet for windows mobile phones. yes this is needed due to images and load times. what I need is if the browser is ie(windows mobile) then I want windows.css if safari then use safari.css


the below code does not work, have tried many times.
<!--[if gte IE 6]>
<link rel="stylesheet" type="text/css" href="iespecific.css" />
<![endif]-->



thanks for the help

6StringGeek
02-27-2009, 01:53 PM
The syntax is correct for targeting ie browsers...

http://www.alistapart.com/articles/returnofthemobilestylesheet/

mthor
02-27-2009, 03:12 PM
thank you for that link. I have tried stuff like the media="only screen and (max-device width:480px)" but the iphone I am testing on will not read the css in that <link> and all paths are correct.