Zum Inhalt springen

Darstellung einfaches horizontales Menü im IE stimmt nicht

Erstellt am 22. Januar 2010 · 1 Antwort · letzte Antwort am 24. Januar 2010

Tags: HTML & CSS, Frage

kinneremer ·

Hallo Community,

habe ein Problem, das mich wirklich schon einige Nerven gekostet hat. Das Problem könnt Ihr direkt hier sehen:
http://www.ruebe.info/cms

Im Firefox sieht alles aus, wie es sein soll. Doch mit dem Internet Explorer "zerhackt" er mir die beiden horizontalen Menüs.
Das TypoScript zum Menü sieht wie folgt aus:

marks.VERTNAV = HMENU
marks.VERTNAV.special = directory
marks.VERTNAV.special.value = 1
marks.VERTNAV.excludeUidList = 1
marks.VERTNAV {
wrap = <div id="vertnav"> | </div>
entryLevel = 0
1 = TMENU
1 {
expAll=1
noBlur = 1
wrap = <ul class="vertnav"> | </ul> 
NO {
wrapItemAndSub =  |    
}
}
}

Und das ganze soll mit CSS so formatiert werden:

div#vertnav {
	width: 100%;	
	padding: 0px 0px 0px 0px;
	font-size: 10px;
	margin: 0px 0px 0px 50px;
	text-align: center;
	float:left;
}

.vertnav a {
	float: left;
	display: block;
	padding: 0px 10px 0px 10px;
	color: #FFFFFF;
	font-weight:bold;
	text-decoration: none;			
}

.vertnav a:active {
	float: left;
	display: block;
	padding: 0px 10px 0px 10px;	
	color: #FFFFFF;
	font-weight:bold;
	text-decoration: none;			
}

.vertnav a:visited {
	float: left;
	display: block;
	padding: 0px 10px 0px 10px;	
	font-weight:bold;
	color: #FFFFFF;
	text-decoration: none;			
}

.vertnav a:hover {	
	float: left;
	display: block;
	padding: 0px 10px 0px 10px;	
	font-weight:bold;
	color: #333333;
	text-decoration: none;			
}

Ich hab´ schon so ziemlich alles versucht und an allen Ecken geschraubt, doch ohne Hilfe komme ich nun nicht mehr weiter.

Ich hoffe, es kann mir jemand von Euch helfen.
Bin dankbar für jeden Tip.

Unbekannter Benutzer ·

Hallo,

also, hast du schon mal was von validen Websites gehört? Deine Seite gibt mir 49 Fehler aus. Da wundert mich nicht, dass das sorgenkind IE das falsch darstellt.

Bei deinem Menü liegt es wohl daran, dass du in derin UL direkt A-Elemente hast und keine LI.

Und noch was Allgemeins: Du schreibst im Doctype die Seite soll in HTML 4 sein. Du hast aber XHTML programmiert.

Grüße