Created
May 22, 2012 06:47
-
-
Save romoo/2767153 to your computer and use it in GitHub Desktop.
JavaScript: Fixing IE z-index
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
/* | |
Source:http://css-tricks.com/snippets/jquery/fixing-ie-z-index/ | |
*/ | |
$(function() { | |
var zIndexNumber = 1000; | |
// Put your target element(s) in the selector below! | |
$("div").each(function() { | |
$(this).css('zIndex', zIndexNumber); | |
zIndexNumber -= 10; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment