Created
June 29, 2010 15:50
-
-
Save adardesign/457396 to your computer and use it in GitHub Desktop.
Fix IE7 z-index bug fix, depencies:jquery
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
$(function() { | |
var zIndexNumber = 1000; | |
if ($.browser.msie && $.browser.version < 8){ | |
$('div').each(function() { | |
if($(this).css("position") =="relative" || $(this).css("position") =="absolute" ){ | |
$(this).css('zIndex', zIndexNumber); | |
zIndexNumber -= 10; | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment