Page

Browser based CSS Switcher

In case your site isn’t viewed the same in all browsers .. and you have made more than 1 CSS file and you don’t know how to apply them now this small tutorial will teach you how.
It’s quite simple … follow the code below:

if ($name = strstr ($HTTP_USER_AGENT, "MSIE"))
{
?>

}
else if ($name = strstr ($HTTP_USER_AGENT, "Mozilla"))
{
?>

}
else
{
?>

}
?>

You can see this simple code in action on Sava’s Place also. If you open up the site in Internet Explorer you will see a small add in the header (right below the login box). If you open it up in Mozilla … the ad is gone… pretty neat ha ? 😉

 

Velg en perfekt brudekjoler oslo for å være en perfekt brud.

Stay Connected

Subscribe to RSS Feed

Subscribe to RSS Feed

Follow me on Twitter

Follow me on Twitter

Subscribe via e-mail

Subscribe via e-mail

Comments One Response to “Browser based CSS Switcher”

  1. Nice Idea