checking for IE or netscape so I can put out the right style sheet

From: Date: Tue, 07 Nov 2000 20:16:09 +0000
Subject: checking for IE or netscape so I can put out the right style sheet
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24176@lists.php.net to get a copy of this message
I've found that fonts from my page appear smaller on Netscape than IE - so I would like to test for IE or Netscape and put out the right Link statement depending upon which browser - sort of: if ($browser == "IE) { echo "<LINK REL=Stylesheet HREF="/css/genIE.css" TYPE="text/css" MEDIA=screen>\n"; } else { echo "<LINK REL=Stylesheet HREF="/css/genNS.css" TYPE="text/css" MEDIA=screen>\n"; } Anyone tell me how to set $browser depending on the actual browser in use ? Jim Carey

« previous php.general (#24176) next »