Click to See Complete Forum and Search --> : position:fixed not working in IE


spiik
02-25-2010, 01:55 AM
Here is another Internet Explorer problem.
Position:fixed doesn't work. I know that it wasn't supported in the older versions of IE, but I can't get it to work in IE8 either.

Please check out the project site http://www.oribium.se/victory/ to see the problem yourself, and also review the source, without having me explaining it all in detail here.

If you compare the page in IE with for example Firefox or some other normal working browser, you will se that the bottom bar is not position fixed in IE as I want it to.

Please help me out!

letmehaveago
02-25-2010, 08:26 AM
read up on quirks mode and standards mode. http://www.quirksmode.org/css/quirksmode.html

just add an appropriate doc type to fix.

spiik
03-01-2010, 04:12 AM
read up on quirks mode and standards mode. http://www.quirksmode.org/css/quirksmode.html

just add an appropriate doc type to fix.

Thanks for your answer. I am currently using this doctype:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

is that not correct?

Kor
03-01-2010, 04:52 AM
Try forcing an IE7 emulation with:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

And probably it would be better if you will remove the comment above your DOCTYPE. I suspect that will bring IE under quirks mode.

spiik
03-01-2010, 04:56 AM
Try forcing an IE7 emulation with:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

And probably it would be better if you will remove the comment above your DOCTYPE. I suspect that will bring IE under quirks mode.

Thank you!
Problem solved by moving the comment under the doctype.