If you can run CGI/SSI on your server, then you'd do well to detect a user's browser through a simple script which will assign a stylesheet which works best with it. I use separate CSS for IE5+, Opera, NS4 and Gecko-based browsers myself. Your
stylesheet.cgi can look something like this:
CODE
#!/usr/local/bin/perl
($TEST = $ENV{'HTTP_USER_AGENT'});
$site = "http://path/to/stylesheet/directory";
$netscape_4 = "$site/ns4.css";
$iexplorer_5up = "$site/ie5.css";
$gecko = "$site/gecko.css";
$opera = "$site/opera.css";
$cssdoc = $netscape_4 if $TEST =~ /Mozilla\/4/;
$cssdoc = $iexplorer_5up if $TEST =~ /MSIE/;
$cssdoc = $gecko if $TEST =~ /Gecko/;
$cssdoc = $opera if $TEST =~ /Opera/;
print "Content-type: text/html\n\n";
print "<link rel=\"stylesheet\" href=\"$cssdoc\" type=\"text/css\" />";
exit();
(Make sure you've got the path to perl on your server correctly - you may have to change it. Also, you must upload ns4.css, ie5.css, etc. to the server.)
Then you call the script in the <head> section of your document:
CODE
<!--#exec cgi="/cgi-bin/stylesheet.cgi"-->
The nice thing about doing script detection this way is that instead of doing a completely new html document, you only have to make a single stylesheet for every browser you want to detect. Saves a lot of time and space. Works like a charm, too.
Hope this helps.
-Chris