|
|||
Submenü erstellen
Mich würde interessieren, wie ich ein Submenü erstelle.
Etwa nach diesem Schema. Also dass wenn ich auf den Hauptmenüpunkt klicke, sich ein Untermenü öffnet. +Home +Produkte |_Produkt1 |_Produkt2 |_Produkt3 +Impressum Mein Menü sieht momentan folgendermaßen aus: HTML(Auszug): Code:
... <div id="content"> <div id="sidebar"> <div id="menu"> <ul> <li class="active"><a href="/home.htm" title="">Home</a></li> <li><a href="#" title="Home">Firmengeschichte</a></li> <li><a href="#" title="">Produkte</a></li> <li><a href="#" title="">Ansprechpartner</a></li> <li><a href="#" title="">Impressum</a></li> </ul> </div> </div> ... Code:
... /* Content */ #content { width: 770px; margin: 0 0 0 25%; height: 300px; } /* Content > Sidebar */ #sidebar { float: left; width: 240px; } /* Content > Sidebar > Menu */ #menu { margin-bottom: 100px; border-bottom: 4px solid #EBEBEB; position: inherit; } #menu ul { margin: 0; list-style: none; line-height: normal; } #menu li { display: inline; } #menu a { display: inline-block; display: block; padding: 10px 0 10px 24px; background: url(images/img05.gif) no-repeat 10px 17px; border-top: 1px solid #EBEBEB; color: #E08934; } #menu a:hover, #menu .active a { background: #EBEEF3; text-decoration: none; font-weight: bold; color: #385B88; } ... Könnte mir eventuell jemand behilflich sein? |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Webseite erstellen | Electrohunter | (X)HTML | 2 | 12.03.2010 13:12 |
Warum aus 4 Teilen einen Round Border erstellen? | webmike | CSS | 4 | 27.11.2008 19:37 |
Image erstellen: "Norton Ghost" vs. "Acronis True Image" vs. "Phoenix Backup" | Lloyd Larkin | Offtopic | 8 | 14.09.2006 22:59 |
Kartei Registerkarten erstellen | toza | CSS | 1 | 16.03.2005 00:35 |
möchte gerne eine laufleiste mit bildern erstellen. | GateKay | (X)HTML | 0 | 02.02.2005 21:17 |