Scenic Living | living with a view on life

May/09

12

z-index problems in IE7

While developing I use FireFox as my main browser. Mostly during the end of the project IE bugfixing is scheduled.

Today I was having difficulties (again) with z-indexes in IE7. Solution? Very easy using jQuery…

Just have this in your script and it will be okay:

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

Wanna know more? Read the article that brought me my solution!

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • eKudos
  • MisterWong
  • Reddit
  • Technorati

RSS Feed

No comments yet.

Leave a comment!

<<

>>

Find it!

Theme Design by devolux.org