[CSS] Hover Menü im IE und FF

27o8

abgemeldet
2 Mai 2006
9.028
933
Hallo,
auf Losewette.de haben wir ein hover Menü aus CSS eingebaut. Die CSS dazu sieht so aus:

Code:
ul { /* all lists */
    padding: 0;
    margin: 0;
    list-style: none;
}

li { /* all list items */
    float: left;
    position: relative;
    width: 10em;
}

li ul { /* second-level lists */
    display: none;
    position: absolute;
    top: 1em;
    left: 0;
    background: #EAE9DD;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
    text-align:center;    
}

li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
    top: auto;
    left: auto;
    border-top: 1px solid #000000;
  line-height:20px;
    border-bottom: 1px solid #000000;    
}

li:hover ul, li.over ul { /* lists nested under hovered list items */
    display: block;
}


Aufgerufen wird das ganze so:
Code:
   <ul id="nav">
         <li>X Lose 
                 <ul><li>Y Bonuslose </li></ul>

Hab das ganze dann noch so gemacht das erstmal <ul> und <li> auch wieder geschlossen wird.


Code:
   <ul id="nav">
         <li>X Lose 
                 <ul><li>Y Bonuslose </li></ul>
         </li>
   </ul>

Aber die IE (<7.X) zeigt es nicht an :( bzw. im IE7 wird es angezeigt aber alles zuweit Rechts :-?.

Woran kann es liegen?

Gruß
cdp