Does anyone know a small, but reliable browser detection script and how to set it up to call a different style sheet for each browser and notify the user if their browser is out of date?
Adam
| SitePoint Sponsor |
Does anyone know a small, but reliable browser detection script and how to set it up to call a different style sheet for each browser and notify the user if their browser is out of date?
Adam
Why not use a few clever CSS hacks like @import to call the right stylesheets? Otherwise if Javascript is disabled the user will get no styles at all.
Thanks for the tip, but after some more tweaking, I found a way to make a single style sheet that works in both.Originally Posted by vgarcia




I know that it's been a huge issue in the past. (Especially for NS4) but with the two major browsers of today being IE and Mozilla, I find that having separate browser-specific stylesheets is no longer neccessary.
Bookmarks