ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
532
532
EMPFEHLEN
-
Servus,
ich möchte eine Horizontale Navigation erstellen, bei welcher sich die unterpunte via mousehover öffnen:
PHP-Code:<ul>
<li>Link 1
<ul><li>Link 2
<ul> <li>Link 3</li></ul>
</li>
</ul>
</li>
</ul>
Das Funktioniert auch soweit bei der ersten ebene (also link1) nur leider öffnet sich gleichzeitig die zweite ebene gleich mit also link3, ich möchte aber das diese sich erst öffnet wenn ich über link 2 gehe.PHP-Code:/* Main Menu Top */
#mainmenu_top { width: 100%; padding: 0; float: left; }
#mainmenu_top div { clear: left; }
#mainmenu_top ul { margin: 0; padding: 1px; text-align: center; float: left; }
#mainmenu_top ul li { list-style: none; float: left; position: relative; margin: 0; padding: 0; background: url(../images/black/menu_linien_top.png) repeat-y right center; }
#mainmenu_top ul a, #mainmenu_top ul span { display: block; padding: 12px 30px 13px; text-decoration: none; font-weight: bold; color: #FFF; }
#mainmenu_top ul a:hover, #mainmenu_top ul span, li a#aktuell { color: white; background-color: gray; }
#mainmenu_top ul li ul { margin: 0; padding: 0; position: absolute; top: 40px; display: none; background-color:#666; width: 200px; text-align: left; /* Unternavigation ausblenden */ }
#mainmenu_top ul li:hover ul { display: block; }
#mainmenu_top ul li ul li { float: none; display: block; margin-bottom: 0.2em; }
li a#aktuell { /* aktuelle Rubrik kennzeichnen */ color: maroon; background-color: silver; }
#mainmenu_top ul li ul span { /* aktuelle Unterseite kennzeichnen */ background-color: maroon; }
Ich hatte es so versucht:
allerdings ohne erfolgPHP-Code:#mainmenu_top ul li ul li ul { margin: 0; padding: 0; position: absolute; left: 200px; display: none; background-color:#666; width: 200px; text-align: left; /* Unternavigation ausblenden */ }

Kann mir jemand weiter helfen?
Grüße Mirko
-
Besser (auf den Tag genau) 2 Monate zu spät, als nie

Code css:1 2 3 4 5 6 7 8 9 10 11 12
/* Submenü-Ebenen verstecken */ #mainmenu_top ul ul, #mainmenu_top ul li:hover ul ul { display:none; } /* Submenü-Ebenen zeigen */ #mainmenu_top ul li:hover ul, #mainmenu_top ul ul li:hover ul { display:block; }
Geändert von spicelab (15.08.11 um 20:37 Uhr) Grund: Tipp-Ex
Ähnliche Themen
-
Scollbalken --> horizontal
Von oldputz1990 im Forum CSSAntworten: 3Letzter Beitrag: 12.09.07, 17:17 -
Navi mit zwei Ebenen
Von tantebootsy im Forum CSSAntworten: 2Letzter Beitrag: 29.06.06, 10:58 -
2 Ebenen Navi, Problem mit IE
Von kirchel im Forum CSSAntworten: 5Letzter Beitrag: 12.02.06, 09:07 -
Horizontal?
Von Tobias Menzel im Forum vB-TestforumAntworten: 2Letzter Beitrag: 22.10.04, 23:58 -
horizontal scrollen
Von berberl im Forum Javascript & AjaxAntworten: 8Letzter Beitrag: 21.09.02, 19:11





Zitieren
Login





