CSS Browser Selector

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