www.webdeveloper.com
Results 1 to 5 of 5

Thread: position:fixed not working in IE

  1. #1
    Join Date
    Feb 2010
    Location
    Göteborg, Sweden
    Posts
    3

    Unhappy position:fixed not working in IE

    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!

  2. #2
    Join Date
    Feb 2010
    Posts
    184
    read up on quirks mode and standards mode. http://www.quirksmode.org/css/quirksmode.html

    just add an appropriate doc type to fix.

  3. #3
    Join Date
    Feb 2010
    Location
    Göteborg, Sweden
    Posts
    3
    Quote Originally Posted by letmehaveago View Post
    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?

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Try forcing an IE7 emulation with:
    Code:
    <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.

  5. #5
    Join Date
    Feb 2010
    Location
    Göteborg, Sweden
    Posts
    3
    Quote Originally Posted by Kor View Post
    Try forcing an IE7 emulation with:
    Code:
    <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.

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles