Sean Gallagher

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromSean Gallagher
ToMe
SubjectMaking IE 5.5+ use position: fixed
Date15 January 2008 06:07
Hi Tarquin,

I just stumbled upon your webpage about "Making IE 5.5+ use position: fixed"
and first wanted to thank you for providing the information.

Second I thought this might be of some help. When looking at the email
reference you provided about "a way to stop the effect being jumpy" I
noticed with that solution that if you only apply the following to the body
it works just about every time I tried (althought it might be effect by the
fact that I also have the CSS background-image tag being used elsewhere for
the body but it set to repeat-x not a fixed position).

body
{
 background-attachment: fixed;
}

Let me know if that help.
FromMe
ToSean Gallagher
SubjectRe: Making IE 5.5+ use position: fixed
Date15 January 2008 16:16
Sean,

> I noticed with that solution that if you only apply the following to the
> body it works just about every time I tried (althought it might be effect
> by the fact that I also have the CSS background-image tag being used
> elsewhere for the body but it set to repeat-x not a fixed position).

Yes, it is because you have a background image. It needs a fixed background
image to work. The reason Linus also used no-repeat was because his
background image was just 1px by 1px, and tiling an image that small makes
the page perform really slowly in most browsers. It is not related to the
workaround, it just improves the performance.


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.