return to my homepage
August 26th, 2011 Tags: ,

IE7 z-index fix

IE7 z-index stacking fix, reverses html order to prevent objects displaying behind other objects with equal z-index value

$(function() {
	var zIndexNumber = 1000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
});