Zum Inhalt springen

Leerzeile vor Menüpunkt

Erstellt am 18. Mai 2007 · 1 Antwort · letzte Antwort am 19. Mai 2007

Tags: HTML & CSS, Frage

MaloDE ·

Hallo an alle!

Ich habe ein seltsames Problem mit einer Seite im IE. Und zwar zeigt er mir meine Menüs wunderbar an. Bis auf zwei Inhaltsseiten, da macht er mir eine Leerzeile vor den Puntk "Startseite". Keine Ahnung wieso. Daher wollte ich Euch mal dazu befragen. Hier seht Ihr das Problem:

http://area6.boomspace.de/index.php?id=6
http://area6.boomspace.de/index.php?id=4

Auf allen anderen Seiten fängt die Hauptnavi eine Zeile frühe ran.

Hier mal das TS dazu:

   10.marks {

      #HAUPTMENUE

      MAIN = HMENU
      MAIN {
         special = directory
         special.value = 2
         1 = TMENU
         1.NO = 1
         1.NO.ATagParams = class="hauptnavNO"
         1.NO.linkWrap = |<br />|*||<br />|*||
         1.ACT = 1
         1.ACT.ATagParams = class="hauptnavACT"
         1.ACT.linkWrap = |<br />|*||<br />|*||
         }

Das CSS sieht folgendermaßen aus:

a:link.hauptnavNO {color:#a0a0a0; text-decoration:none; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}
a:visited.hauptnavNO {color:#a0a0a0; text-decoration:none; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}
a:active.hauptnavNO {color:#a0a0a0; text-decoration:none; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}
a:hover.hauptnavNO {color:#a0a0a0; text-decoration:underline; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}

a:link.hauptnavACT {color:#aa414f; text-decoration:none; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}
a:visited.hauptnavACT {color:#aa414f; text-decoration:none; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}
a:active.hauptnavACT {color:#aa414f; text-decoration:none; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}
a:hover.hauptnavACT {color:#aa414f; text-decoration:none; font-size: 11px; font-weight: bold; line-height:175%; margin: 0;
padding: 0;}

Margin und Padding habe ich heute ergänzt. Ob mit oder ohne macht aber auch keinen Unterschied.

Vielleicht habt Ihr ja eine Idee.

Danke im Voraus... Malo

Unbekannter Benutzer ·

versuch doch mal den "br" tag vor jedem Menülink hinter den Link zu setzen.

wrap = | <br>

Generell würde ich versuchen solche Menüs immer als Liste darzustellen.

MAIN = HMENU
MAIN {
   special = directory
   special.value = 2
   1 = TMENU
   1{
    wrap = <ul>|</ul>
    NO{
      wrapItemAndSub = <li>|</li>
    }
   }
}