Created
April 12, 2012 21:38
-
-
Save avireni/2371176 to your computer and use it in GitHub Desktop.
Browser Detection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Target Safari | |
if( $.browser.safari ) $("#menu li a").css("padding", "1em 1.2em" ); | |
Target anything above IE6 | |
if ($.browser.msie && $.browser.version > 6 ) $("#menu li a").css("padding", "1em 1.8em" ); | |
Target IE6 and below | |
if ($.browser.msie && $.browser.version <= 6 ) $("#menu li a").css("padding", "1em 1.8em" ); | |
Target Firefox 2 and above | |
if ($.browser.mozilla && $.browser.version >= "1.8" ) $("#menu li a").css("padding", "1em 1.8em" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment