Skip to content

Instantly share code, notes, and snippets.

@baldwindavid
Created June 26, 2012 17:27
Show Gist options
  • Save baldwindavid/2997237 to your computer and use it in GitHub Desktop.
Save baldwindavid/2997237 to your computer and use it in GitHub Desktop.
IE7 z-index
if ($.browser.msie && $.browser.version == 7) {
$(function() {
var zIndexNumber = 1000;
$("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