Z-Index

Sat, 05/05/2012 - 18:57
Body

Z-Index

http://tjkdesign.com/articles/z-index/teach_yourself_how_elements_stack.asp FIX for DUMB ie7 css z-index wrong stacking.

Z-Index IE 7

  1. <script type="text/javascript">
  2.    //ie 7 wrong z-index interperatation fix
  3.    if (navigator.appVersion.indexOf("MSIE 7.") != -1) {
  4.     if (Drupal.jsEnabled) {
  5.     $(function() {
  6.     var zIndexNumber = 1000;
  7.     $('div').each(function() {
  8.     $(this).css('zIndex', zIndexNumber);
  9.     zIndexNumber -= 10;
  10.     });
  11.     });
  12.     }
  13. }
  14.  
  15.   </script>
Webdevelopment
Add new comment
The content of this field is kept private and will not be shown publicly.

Plain text

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <drupal-entity data-*>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.