Fixed possition not working in IE7

Discussion in 'CSS' started by muffin8, Aug 20, 2009.

  1. #1
    Hello,
    The following code does not work in IE7. I have searched and experimented and I can not figure out what is wrong, I am hoping someone here could tell me how to fix it.

    I am trying to put an box (called emailcontainer) at a specific location. All the browsers I have checked it on seem to work except IE7. IE7 seems to put the box on the far right side of the screen.

    I have cut the code down to the essentials, any ideas? Thanks.

    index.html=
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">

    <head>
    <link rel="stylesheet" type="text/css" href="main.css" media="screen" />
    </head>

    <body>

    <div id="container">
    <div id="emailcontainer">
    </div> <!-- emailcontainer -->
    </div> <!-- container -->

    </body>
    </html>



    main.css =
    body {
    background-color: #ffffff;
    text-align: center;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    }

    #container {
    margin: auto;
    width: 800px;
    height: 600px;
    background-image: url(images/backgroundscroll.jpg);
    }


    #emailcontainer {
    position: fixed;
    margin: 95px 0 5px 482px;
    width:210px;
    height:20px;
    border-color: #814D26;
    border-style:solid;
    border-width:1px;
    background-color: #BDD6AC;
    }
     
    muffin8, Aug 20, 2009 IP
  2. backlinkgurus

    backlinkgurus Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not sure exactly what your trying to do here. position:fixed all by itself like that isn't doing anything. Send a link to the site so we can help you better.
     
    backlinkgurus, Aug 20, 2009 IP
  3. muffin8

    muffin8 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I guess my short description was not to descriptive :eek:

    I posted the files to one of those free web space services. I am new here though so I am not allowed to post a link. Do I have to wait 2 weeks before I could get help with this problem or can I tell you that the I posted the problem I need help with to:

    muffin8.freewebspace.com

    When I view the site in IE7 a lot seems to go wrong.

    Are you able to get the code and find my mistakes?

    thanks for the help.
     
    muffin8, Aug 20, 2009 IP