CSS-Problem bei ul + li Formatierung in IE und Firefox

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • CSS-Problem bei ul + li Formatierung in IE und Firefox

    Im IE werden die li-Punkte respektive Menüpukte richtig untereinander linksbündig angezeigt. Im Firefox oder Opera werden der li-Punkte leider nach rechts eingerückt. Hat jemand eine Idee oder IE/FF-Workaround?

    Quellcode

    1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    2. <html>
    3. <head>
    4. <title>CSS-Problem</title>
    5. <style type="text/css">
    6. body, html {
    7. margin:0;
    8. height:100%; /* the IE does't know min-height */
    9. min-height:100%; /* for the orters... */
    10. font-family : Verdana, Arial, Helvetica, sans-serif;
    11. font-size: 13px; }
    12. .bold { font-weight: bold; }
    13. .blue { color: #2369C2; }
    14. .blue:link, .blue:active, .blue:visited { color: #2369C2; text-decoration:none; }
    15. .blue:hover { color: #2369C2; text-decoration:underline; }
    16. .orange { color: #FF6510; }
    17. .orange:link, .orange:active, .orange:visited { color: #FF6510; text-decoration:none; }
    18. .orange:hover { color: #FF6510; text-decoration:underline; }
    19. /* L E F T N A V */
    20. .leftnav { position:absolute; width:210px; left:50px; top:190px; border:1px solid #A5ABB9; }
    21. .leftnav .headline2 {
    22. font-weight: bold;
    23. font-size: 17px; /* grosser Text */
    24. padding: 0px 2px 15px 11px; /* Abstand der Ueberschrift LINKS+RECHTS zum DIV-Rahmen */ }
    25. .leftnav .test123 {
    26. list-style-type: none;
    27. margin: 0px 11px 0px 11px; /* Abstand zwischen gestrichelter Linie LINKS+RECHTS zum DIV-Rahmen */ }
    28. .leftnav .level2 {
    29. /* Menuepunkte in Ebene 2 besitzen eine gestrichelte Linie jeweils oberhalb des Eintrages */
    30. border-top: 1px dotted #A5ABB9;
    31. padding: 4px 1px 3px 15px; }
    32. </style>
    33. </head>
    34. <body>
    35. <div class="leftnav blue">
    36. <div class="headline2">Menuepukte:</div>
    37. <ul class="test123">
    38. <li class="level2"><a href="#" class="blue">Eintrag 1</a></li>
    39. <li class="level2"><a href="#" class="blue">Eintrag 2</a></li>
    40. <li class="level2"><a href="#" class="blue">Eintrag 3</a></li>
    41. <li class="level2"><a href="#" class="blue">Eintrag 4</a></li>
    42. </ul>
    43. </div>
    44. </div>
    45. </body>
    46. </html>
    Alles anzeigen