ERLEDIGT
NEIN
NEIN
ANTWORTEN
1
1
ZUGRIFFE
470
470
EMPFEHLEN
-
13.01.12 19:55 #1
- Registriert seit
- Aug 2007
- Beiträge
- 280
Hi,
ich habe folgende Struktur
ich nutze folgende CSS definitionHTML-Code:<div id="containerheader"> <ul class="menu"> <li class="item-465 current active"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/" >HOME & NEWS</a></li> <li class="item-466"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/index.php/myapp" >myapp DRESDEN</a></li> <li class="item-467"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/index.php/shops" >SHOPS</a></li> <li class="item-468 deeper parent"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/index.php/leistungen" >LEISTUNGEN</a> <ul> <li class="item-479"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/index.php/leistungen/navigation" >Navigation</a></li> <li class="item-470"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/index.php/leistungen/dsl" >DSL</a></li> </ul> </li> <li class="item-469"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/index.php/service" >SERVICE</a></li> <li class="item-439"><a href="/projekte/server2_myapp_dresden_de/httpdocs/cms/index.php/kontakte" >KONTAKTE</a></li> </ul> </div>
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
#containerheader ul.menu { list-style: none; width: 1000px; font-size: 1.2em; margin: 0 auto; padding-top:30px; padding-bottom:10px; z-index: 1000; } #containerheader ul.menu li { float: left; display: inline; margin: 0; padding: 0 15px 0 0; position: relative; /*--Declare X and Y axis base for sub navigation--*/ z-index: 1000; } #containerheader ul.menu li a{ padding: 10px 5px; color: #000000; display: block; text-decoration: none; float: left; text-transform: uppercase; z-index: 1000; } /* Sub */ #containerheader ul.menu li ul { color:999999; list-style: none; margin: 0; padding: 0; left: 0px; background-color:#cccccc; z-index: 1000; } #containerheader ul.menu li ul li { color:999999; background-color:#cccccc; position: relative; z-index: 1000; } #containerheader ul ul { position: absolute; top: 0; left: 100%; width: 100%; z-index: 1000; } div#containerheader ul ul, div#containerheader ul ul li:hover ul { display: none; z-index: 1000; } div#containerheader ul li:hover ul, div#containerheader ul ul li:hover ul { display: block; z-index: 1000; }
Leider wird die zweiet Ebene immer über den Hauptpunkt gelegt. Es soll aber relativ dazu , unterhalb des Hauptmenüpunkts aufgeklappt werden. Ne Idee was ich da falsch mache?
Danke für die Hilfe
-
Hi,
du hast das zweite Menü absolut positioniert, aber keinen Abstand nach oben festgelegt. Deswegen orientiert es sich an der linken oberen Ecke des Elternelements und überdeckt es somit.
Code :1 2 3
#containerheader ul ul{ top: 2em; }
hinzugefügt sollte grob funktionieren.Für die Übereinstimmung von Niederschrift und Hirninhalt.
Ähnliche Themen
-
rechte Maustaste->Menu->noch ein Menu
Von fischmir im Forum Swing, Java2D/3D, SWT, JFaceAntworten: 2Letzter Beitrag: 18.07.05, 15:15 -
Jbutton mit integriertem PullDown Menu erzeugen
Von Shout im Forum JavaAntworten: 1Letzter Beitrag: 21.04.04, 08:12 -
pulldown menu
Von rycon im Forum Javascript & AjaxAntworten: 6Letzter Beitrag: 28.08.02, 09:03 -
Pulldown Menu mit allen Ländern
Von Dominion im Forum PHPAntworten: 6Letzter Beitrag: 18.03.02, 21:41 -
Pulldown Menu
Von BigAthlon im Forum HTML & XHTMLAntworten: 6Letzter Beitrag: 31.07.01, 15:52





Zitieren
Login





