CSS Browser Selector
An interesting and elegant solution for those looking for a way to target specific browsers and/or operating systems with differing CSS. It’s a (less than) 1kb JavaScript file that will add a class name to your document’s html tag with the browser and OS of the client machine so you can write CSS that targets certain browser and operating system configurations in a standardized way.
This is similar to a method I use for adding Symfony module and action selectors to the body tag.
Find This Article Useful?
Related Articles
About this entry
You’re currently reading “CSS Browser Selector,” an entry on MirthLab
- Published:
- Friday, October 24th, 2008 at 10:02 am
- Author:
- Mark Quezada
- Category:
- Web Development
- Tags:
- browser detection, css, javascript

No comments
Jump to comment form | comments rss | trackback uri