treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Looks good in FF but messed up in IE

  • Hello all,

    The menu bar looks great in FireFox but it is messed up in IE. Any ideas? The website is http://4oakfantasyfootball.com/.

    Thanks!
    Kendra

    the 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\">

    <head>

    <title>4OAK Fantasy Football</title>

    <LINK REL=stylesheet HREF=\"screen.css\" TITLE=\"Contemporary\">

    </head>

    <body>

    <div id=\"wrap\">
    <div id=\"container\">

    <div id=\"top\">
    <h1></h1>


    <div id=\"menu\">
    <ul>
    <li class=\"home\">
    <a href=\"#\">Home</a></li>
    <li class=\"about\">
    <a href=\"#\">About</a>
    <li class=\"nfl\">
    <a href=\"images/fantasyplayerswithcards-1.pdf\">NFL Players</a></li>
    <li class=\"rules\">
    <a href=\"#\">Rules</a>

    <li class=\"forum\">
    <a href=\"http://www.wenalway.com/forum\">Forum</a></li>
    <li class=\"register\">
    <a href=\"#\">Register</a></li>
    <li class=\"links\"><a href=\"#\">Links</a>
    <ul>
    <li><a href=\"http://www.nfl.com\">NFL</a>
    </ul>
    </li>
    </div>


    <div id=\"content\">

    <font color=#8A4117 size=\"4\">4OAK Fantasy Football<br><br>

    The game that blends fantasy football and poker.<br><br>

    </div></div>
    </div>
    <div class=\"clear\"></div>

    <div id=\"bottom\">
    <center><strong><font face=\"Arial, Helvetica, sans-serif\" color=yellow size=\"2\">&copy; All rights reserved. KVR Company 2009<br></strong></center>

    </font>
    </body>

    </html>

    the css:


    body {
    position:relative;
    margin: auto;
    width:100%;
    height:100%;
    background-color: #986547;
    background-image:url(images/football.jpg);
    body text=\"#FFFFFF\";
    padding-top: 10px;
    }

    #container
    {
    width: 1000px;
    line-height: 130%;
    }

    #wrap {
    margin: 10px auto;
    width: 1000px;
    }

    #top h1 {
    background-image:url(images/test1.jpg);
    background-repeat:no-repeat;
    height: 225px;
    clear: both;
    }

    #menu {
    background:#666666 url(images/content.jpg) repeat scroll 0 0;
    height:40px;
    line-height:40px;
    margin-top:-22px;
    padding:0 10px;
    }

    #menu li.home a {
    padding:0 47px 0 40px;
    }
    #menu li.about a {
    padding:0 47px 0 40px;
    }
    #menu li.nfl a {
    padding:0 47px 0 40px;
    }
    #menu li.rules a {
    padding:0 47px 0 40px;
    }
    #menu li.forum a {
    padding:0 47px 0 40px;
    }
    #menu li.register a {
    padding:0 47px 0 40px;
    }
    #menu li.links a {
    padding:0 50px 0 42px;
    }

    #menu li{
    position: relative;
    float: left;
    list-style: none;
    margin: 0;
    padding:0;
    font-size: 0px;
    }


    #menu li a{
    background-color:#986547;
    color:yellow;
    display:block;
    font-size:18px;
    line-height:40px;
    padding: 0 40px;
    text-align:center;
    text-decoration:none;
    width:auto;
    }

    #menu ul {
    padding:0;
    }

    #menu ul li ul li a {
    color:yellow;
    display:block;
    font-size:17px;
    line-height:40px;
    padding-right:40px;
    text-align:left;
    text-decoration:none;
    width:10em;
    }

    #menu li a:hover{
    background-color: #8A4117;
    }

    #menu ul ul {
    margin: 0; padding: 10;
    top: 40px;
    position: absolute;
    visibility: hidden;
    }
    #menu ul li.links ul li a {width: 40px;}
    #menu ul li.parent resources ul li a {width: 240px;}

    #menu ul li:hover ul{
    visibility:visible;
    }


    #content {
    background: #666666 url(images/content.jpg) repeat-y;
    color: black;
    padding: 50px;
    }

    #bottom {
    background: #986547 url(images/bottom.jpg) no-repeat;
    padding: 20px 0;
    }

    #footer {
    clear: both;
    margin: 0;
    padding: .5em;
    color: #333;
    background-color: #ddd;
    border-top: 1px solid gray;}

    .clear {
    clear:both;
    }
  • try adding

    width: 995px;
    margin-left: 0px;

    to your #menu ul
  • Thank you! That worked.

    Kendra