Click to See Complete Forum and Search --> : load a different css file for browsers


bleustreak1
07-24-2009, 06:42 AM
what code do i right to use a css file for opera ,safari and chrome

eg this is how i load a css file if someone is viewing my site in ie 6

<!--[if IE 6]>
<link href="templates/aaaaa/css/ie6only.css" type="text/css" rel="stylesheet" />
<![endif]-->

Andyram2k
07-24-2009, 06:49 AM
Hi Bleustreak1,
You shouldn't really need more than 1 stylesheet for all those browsers you specified, except for IE6. You just have to make sure the styles work across the board, by doing a bit of online research. Hope this helps :)

bleustreak1
07-24-2009, 06:53 AM
yes i have tried that also but i would like to even show some different properties in my site for different browsers.


it would be really great if i could load diff css files for diff browsers

Andyram2k
07-24-2009, 07:02 AM
I find that firefox / safari and chrome appear correctly with the main stylesheet, and its only normally IE that differs (in margins / padding etc). You should be ok with just 1 i would have thought, but the other guys on this forum may have suggestions on this. Hope this helps.