Fixing IE Z-index with jquery


/ Published in: JavaScript
Save to your folder(s)

Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/


Copy this code and paste it in your HTML
  1. $(function() {
  2. var zIndexNumber = 1000;
  3. // Put your target element(s) in the selector below!
  4. $("div").each(function() {
  5. $(this).css('zIndex', zIndexNumber);
  6. zIndexNumber -= 10;
  7. });
  8. });

URL: http://css-tricks.com/snippets/jquery/fixing-ie-z-index/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.