position:fixed in IE 6 (without using 'expressions')


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



Copy this code and paste it in your HTML
  1. <style type="text/css">
  2.  
  3. body { height:100%; overflow-y:auto; }
  4.  
  5. #fixie {
  6. position:fixed;
  7. top:0;
  8. left:0;
  9. }
  10.  
  11. * html #fixie { position:absolute; }
  12.  
  13.  
  14. <!--[if lte IE 6]>
  15. <style type="text/css">
  16. /*<![CDATA[*/
  17. html {overflow-x:auto; overflow-y:hidden;}
  18. /*]]>*/
  19. </style>
  20. <![endif]-->

URL: http://bettesmidler.com/code/2009-07-30.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.