Email conversation
From | Detlef Wilske |
To | Me |
Subject | Making Internet Explorer 5.5+ use position: fixed; |
Date | 14 January 2005 15:15 |
Dear Mark,
I read your page on making Internet Explorer 5.5+ use position: fixed.
Because I want to have my fixed DIV (ur) in the right bottom corner I tried
to change your css to
#ur {position: absolute; right: 0; bottom: 0; width: 110px; display: block;text-align: right;}
body > div#ur {position: fixed; right: 0; bottom: 0; width: 110px; display: block;text-align: right;}
div#ur {
/* IE5.5+/Win - this is more specific than the NS4 version */
left: expression( ( document.body.offsetWidth + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + px );
top: expression( ( document.body.offsetHeight + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + px );
width: 110px; display: block;text-align: right;}
My IE 6 put the DIV actually into the right bottom corner, but after
scrolling down, the DIV stayed at its place (i.e. moved up the page).
Could you possibly give me a hint what I could change? Thank you very much
Detlef
From | Me |
To | Detlef Wilske |
Subject | Re: Making Internet Explorer 5.5+ use position: fixed; |
Date | 16 January 2005 13:57 |
Detlef,
This took me a little while to investigate. I figured that I could just use
bottom and right instead (the correct way to do it) but I came across some
strange positioning bugs in IE. I spent a while trying to work out if it
was my mistake or a bug, and eventually came to the conclusion it was yet
another IE bug.
Anyway, the short story is; yes, it can be done, using something like what
you were trying to do. I have updated the page to show how to use it:
http://www.howtocreate.co.uk/fixedPosition.html
Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
From | Detlef Wilske |
To | Me |
Subject | Re: Making Internet Explorer 5.5+ use position: fixed; |
Date | 17 January 2005 8:21 |
Hi Mark,
thank your for your mail and your help. It works fine. It will take a while
until it will to be seen on my site, but then I will inform you.
Detlef