|
|||
Flyout Menu - dritte Ebene vertikal
Hallo zusammen,
ich habe ein vertikales Flyout-Menu, das wunderbar funktioniert. Nun soll aber in der dritten Ebene die Liste nicht in einer weiteren Box rechts versetzt angezeigt werden, sondern unterhalb des dazugehörigen Oberpunktes, die folgenden Oberpunkte sollen runterrutschen. Das habe ich soweit geschafft, allerdings ist es jetzt nicht mehr möglich, den Menüpunkt unterhalb des ausgeklappten zu erreichen, da beim Mouseover immer die dritte Ebene aufgeklappt wird und beim Verlassen das gesamte Flyout wieder zuklappt. Kann jemand helfen? Hier der Code: Code:
#navi1 > ul { list-style: none; margin: 0; padding: 0; vertical-align: baseline; line-height: 1; } #navi1 > ul { display: block; position: relative; width: 150px; } #navi1 > ul li { display: block; position: relative; margin: 0; padding: 0; width: 100%; } #navi1 > ul li a { display: block; position: relative; margin: 0; line-height:14px; padding: 10px 0; color: #be3e23; text-decoration: none; text-transform: uppercase; } #navi1 > ul li a:focus, #navi1 > ul li a:hover, #navi1 > ul li a:active, #navi1 > ul li:focus > a, #navi1 > ul li:hover > a, #navi1 > ul li:active > a { color:#7f8f8c; } #navi1 > ul ul li a { display: block; position: relative; margin: 0; line-height:14px; padding: 10px 0; color: #fff; text-decoration: none; text-transform: uppercase; } /* THE SUBMENUS */ #navi1 > ul ul { position: absolute; left:90%; top: -9999px; padding:0 10px; opacity: 0; width: 160px; background:#be3e23; -webkit-transition: opacity 0.3s ease-in; -moz-transition: opacity 0.3s ease-in; transition: opacity 0.3s ease-in; } #navi1 > ul ul li a { color:#fff; } #navi1 > ul ul li a:focus, #navi1 > ul ul li a:hover, #navi1 > ul ul li a:active, #navi1 > ul ul li:focus > a, #navi1 > ul ul li:hover > a, #navi1 > ul ul li:active > a { color:#fff; text-decoration:underline; } /* Showing the submenu when the user is hovering the parent link */ #navi1 > ul li:hover > ul { top: 0px; opacity: 1; z-index: 1; display:block; } /* DRITTE EBENE */ #navi1 > ul ul ul { display:none; position: static; padding:0; opacity: 0; width: 160px; background:#be3e23; -webkit-transition: opacity 0.3s ease-in; -moz-transition: opacity 0.3s ease-in; transition: opacity 0.3s ease-in; } #navi1 > ul ul ul li a { color:#fff; text-transform:none; } #navi1 > ul ul li a:focus, #navi1 > ul ul li a:hover, #navi1 > ul ul li a:active, #navi1 > ul ul li:focus > a, #navi1 > ul ul li:hover > a, #navi1 > ul ul li:active > a { color:#fff; text-decoration:underline; } /* Showing the submenu when the user is hovering the parent link */ #navi1 > ul ul li:hover > ul { display:block; top: 0px; opacity: 1; z-index: 1; } (Bitte nicht über die vielen Klassen wundern, die werden automatisch von der MEnüfunktion des CMS' erstellt (Lepton)) HTML-Code:
<div id="navi1"> <ul class="menu-top"> <li class="menu-expand menu-sibling menu-first"><a href="#" target="_top" title="Einblicke">Einblicke</a> <ul class=""> <li class="menu-first"><a href="#" target="_top" title="Rundgang">Rundgang</a></li> <li class=""><a href="#" target="_top" title="Rezeption">Rezeption</a></li> <li class="menu-expand"><a href="#" target="_top" title="Team">Team</a> <ul class=""><li class="menu-first"><a href="#" target="_top" title="Koch">Koch</a></li> <li class="menu-last"><a href="#" target="_top" title="Empfang">Empfang</a></li> </ul> </li> <li class="menu-last"><a href="#" target="_top" title="Geschichte">Geschichte</a></li> </ul> </li> <li class="menu-expand menu-sibling"><a href="#" target="_top" title="Quartiere">Quartiere</a> <ul class=""> <li class="menu-first"><a href="#" target="_top" title="Nummer 1">Nummer 1</a></li> <li class=""><a href="#" target="_top" title="Nummer 2">Nummer 2</a></li> <li class=""><a href="#" target="_top" title="Nummer 3">Nummer 3</a></li> </ul> </li> <li class="menu-sibling menu-last"><a href="#" target="_top" title="Allgemeines">Allgemeines</a></li> </ul> </div> Danke & Grüße Jochen Geändert von chaploo (02.07.2014 um 15:11 Uhr) |
Sponsored Links |
|
|||
Zitat:
Habe mir deinen Code jetzt nicht weiter angesehen, aber mit den Entwicklerwerkzeugen im Browser ist das schnell ausprobiert.
__________________
"Wieso ist der Code schrott, ich dachte hier seien Profis..." Aus einem Forum. |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Hilfe css Menu center | xXcyberXx | CSS | 5 | 28.11.2010 19:51 |
Menustruktur vertikal, horizontal, vertikal | anneon | CSS | 2 | 21.01.2010 14:31 |
Linkverhalten im IE6 | ChOpSueY! | CSS | 19 | 19.05.2008 22:48 |
Problem mit vertikaler Navigation | Krissie | CSS | 0 | 15.08.2007 12:51 |
Probleme mit einem CSS-Menü (UL-Liste)! | hagbard_2605 | CSS | 0 | 21.10.2006 10:03 |