Posted By

JimSangwine on 05/05/11


Tagged


Versions (?)

Fixed Positioning in IE 6


 / Published in: CSS
 

  1. * { margin:0; padding:0; }
  2.  
  3. html, body {
  4. height: 100%;
  5. }
  6.  
  7. body #fixedElement {
  8. position:fixed !important;
  9. position: absolute; /*ie6 and above*/
  10. top: 0;
  11. right: 0;
  12. }
  13.  
  14. #page-wrap {
  15. width: 600px;
  16. margin: 0 auto;
  17. font: 16px/2 Georgia, Serif;
  18. }
  19.  
  20. /* The 100% height on the body and html stuff is in case you want to do fixed positioning along the bottom edge of the browser window. */

Report this snippet  

You need to login to post a comment.