hi,
how can I load a css file only for Safari browser ? I usually use just this (without javascript)
<!--[if IE 8]>
<link href="ie8.css" rel="stylesheet" type="text/css" />
<![endif]-->
for internet explorer 8. Thanks
hi,
how can I load a css file only for Safari browser ? I usually use just this (without javascript)
<!--[if IE 8]>
<link href="ie8.css" rel="stylesheet" type="text/css" />
<![endif]-->
for internet explorer 8. Thanks
Check out the CSS Browser selector plugin. It's really easy to implement and use, just write some special rules in your CSS, no extra stylesheets or anything. I use it and it works great!
Hope it helps :)
I haven't seen a need to in ages (like Safari 2). Make a new question about the actual problem you're having and someone can probably tell you how to fix it with nothing but redundant CSS or less.
Real simple bit of PHP. Going to be an alternative for ASP too:
<?php
$browser = get_browser();
if($browser->browser == 'Safari') {
echo '<link href="safari.css" rel="stylesheet" type="text/css" />';
}
?>