CSS Browser Selector

If you're new here, you may want to subscribe to my RSS feed or follow me on Twitter. Thanks for visiting!

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.


About this entry