Killersites.com Homepage


Print at Jun 19, 2013 1:37:39 PM

Posted by MacRankin at Oct 25, 2008 9:15:55 PM
CSS Browser Selector
I've just come across a javascript equivalent of a conditional comment that can be used for all browsers and operating systems..?

Info
http://rafael.adm.br/css_browser_selector/
Javascript
http://github.com/rafaelp/css_browser_selecto...r/css_browser_selector.js

Once you've got an idea how this work, simply copy that javascript, target it, and select an alternative value for whatever browser you wish to target...

<script src="css_browser_selector.js" type="text/javascript"></script>

<style type="text/css">
.ie6 body {
background: #FC0;
}
</style>
----------------------------------------
We Brits do things differently, but we still get shot at!