Hi,
I have one main CSS that use. But in IE the site looks bad. I have another CSS that is just a add on to the main CSS.
Is there a way to detect my users browser and just add that CSS in via an include or something.
thanks,
Yeah... via javascript would be your best option, but you might try the $_SERVER['HTTP_USER_AGENT'] variable.
could someone show me because i know almost no javascript
If your Apache server has mod_rewrite turned on, you could use a silent redirect in an .htaccess file.
That would require an hour or two of reading-up, though. Pretty solid mechanism, though.
Using mod_rewrite just to display a CSS depending on browser? I'd have to say that's rather overkill...
As for using Javascript, you can easily Google that and find tons of information and examples.