Yehia A.Salam
Yehia A.Salam

Reputation: 2078

IE9 and Position Fixed

I'm trying to use the position fixed css on a simple one page website with vertical scrolling but am facing problems with IE9, it's like it's ignoring the fixed property, you can see the website here

http://cairocubicles.com/sandbox/mahaly-iphone/

looks right on chrome, firefox.

Appreciate the help. Yehia

Upvotes: 1

Views: 5162

Answers (2)

Andrew MacNaughton
Andrew MacNaughton

Reputation: 813

This took me a while to figure out. I was writing some javascript using which contained code to write to console.log. Never noticed it was a problem as i never use IE and nothing appeared to be broken in FF or chrome. I had the js above my declaration and that was what was causing the error. you shouldnt put anything browser side before that declaration.

Upvotes: 0

James Montagne
James Montagne

Reputation: 78650

Try adding a doctype to make sure IE9 isn't going into quirks.

Upvotes: 9

Related Questions