Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. IE 6 z-index and position: fixed; issue
  2. <body>
  3.   <div class="header"> </div>
  4.   <div id="content-wrapper">
  5.   <a href="/some.html"><div class="feedback_div"></div></a>
  6.   </div>
  7.   <div id="footer-wrapper"></div>
  8. </body>
  9.        
  10. /* IE 6 only */
  11. * .feedback_div
  12. {
  13.     z-index: 9998;
  14.     position: absolute;
  15.     top: expression( (( t=document.documentElement.scrollTop) ? t: document.body.scrollTop) +'px');
  16.     right: -140px;
  17. }
  18. * #content-wrapper
  19. {
  20.     position: relative;
  21.     z-index: 9999;
  22. }
  23. * #footer-wrapper
  24. {
  25.     z-index: 0;
  26.     position: relative;
  27. }
  28. * html
  29. {
  30. overflow: auto;
  31. }
  32. * html body
  33. {
  34. height: 100%; /* required */
  35. }
  36. /* END: IE 6 only */