Position:fixed Fix for IE6 (without javascript)

Here is the code:

#theDiv
{
position:absolute;
left: 25px;
top: 25px;
}
body > #theDiv
{
position:fixed;
}

Please let me know what you think of this fix, thanks ;).


The voice of the people

  1. Iiro Krankka

    This is allright, but on P2L it gave me wrong vision. I thought that this is going to teach how fixed position can be done in IE.

    Anyway I have solved this problem and live example is located here.

  2. pligg.com

    Position:fixed Fix for IE6 (without javascript)…

    As you may know, Internet Explorer 6 does not support fixed positioning. I recently was working on a website where fixed positioning was needed. When I tested the site in Firefox it looked great, but in IE6 it rendered terribly….

  3. a
  4. Greg

    Thanks for putting that on your site. I appreciate it very much. =D

  5. Greg

    Iiro thanks for that link. =D

  6. Terkel

    Cool! thanks

  7. Greg

    You are very welcome =D

  8. volkann

    thanks :)

  9. The Website Shop Digest » Blog Archive » Position:fixed Fix for IE6 (without javascript)

    [...] More… [...]

  10. mo

    http://tagsoup.com/cookbook/css/fixed/

    your code might not be able to follow the scroll + resize bug in IE6 I believe.

    Try the link =]

  11. Greg

    @Mo, thanks for this. I’ll add this to the post.

  12. Justin

    Sorry no dice.

  13. Jenny

    hi, I saw your post on the fixed position on ie 6. I tried to use it on my website and it didnt work. can you explain a little about it please?

Leave a Reply

Recently