Skip to content

Instantly share code, notes, and snippets.

@jmblog
Created September 2, 2011 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmblog/1188292 to your computer and use it in GitHub Desktop.
Save jmblog/1188292 to your computer and use it in GitHub Desktop.
Check z-index in IE6/7
$('*').each(function() {
var position = $(this).css('position'),
zIndex = $(this).css('z-index');
if (position != 'static' && zIndex != 'auto') {
console.log(position, zIndex, $(this));
} else if (position != 'static') {
console.log(position, '0 in IE', $(this));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment