Detlef Wilske

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromDetlef Wilske
ToMe
SubjectMaking Internet Explorer 5.5+ use position: fixed;
Date14 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
FromMe
ToDetlef Wilske
SubjectRe: Making Internet Explorer 5.5+ use position: fixed;
Date16 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/
FromDetlef Wilske
ToMe
SubjectRe: Making Internet Explorer 5.5+ use position: fixed;
Date17 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
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.