Home > Software > smooth position:fixed in IE

smooth position:fixed in IE

February 20th, 2006

After many hours of searching and hacking I finally found this document explaining how to avoid a flickering position:fixed in IE. Most documents will simply say you need:

#dashboard{
  position:fixed !important;
  position:expression('absolute');
  top:0px !important;
  top:expression('body.scrollTop');
}

This is leaving out one important part. The solution that seems to work is to add a background fixed to the body tag

body{
  background:url(foo) fixed;
}

Software ,

  1. Lardlad
    February 18th, 2009 at 17:06 | #1

    Awesome!! I was fighting with a layout of mine and this was exactly what I needed. I did have to use this expression for the body tag as well (in css):
    html body{
    filter: expression(document.execCommand(“BackgroundImageCache”, false, true));
    }

  2. September 24th, 2009 at 21:48 | #2

    This would not stop the flicker for me until I put the css straight in the of the document. It doesn’t work as a

  1. No trackbacks yet.
CommentLuv Enabled

Comments links could be nofollow free.