CSS Browser Selector is a very small javascript with just one line which empower CSS selectors. It gives you the ability to write specific CSS code for each operating system and each browser.
Example:
The color of box can change on different os/browsers:
- Internet Explorer – yellow
- Internet Explorer 7 – orange
- Gecko Engine on Windows (Firefox, Mozilla, Camino) – red
- Gecko Engine on Linux (Firefox, Mozilla, Camino) – pink
- Gecko Engine on Other OS (Firefox, Mozilla, Camino) – gray
- Opera – green
- Konqueror – blue
- Safari – black
- Chrome – cyan
Source of this example:
DOWNLOAD
http://github.com/rafaelp/css_browser_selector/raw/master/css_browser_selector.js
git clone git://github.com/rafaelp/css_browser_selector.git
Usage
1. Copy and paste the line below, inside and tag
<script src=”css_browser_selector.js” type=”text/javascript”></script>