|
|||
![]()
Hallo an euch alle,
ich habe ein css-menu gefunden: Horizontal CSS Menus || CSS Menu Builder Dort ist die Navileiste blau und bei hover schwarz. Wie kann ich jetzt dazuschreiben, dass auf der aktiven Seite, auf der ich mich befinde, der schwarze Hintergrund zu sehen sein soll? html: <ul id="menu"> <li><a href="#" target="_self" title="sample">sample</a></li> <li><a href="#" target="_self" title="sample">sample</a></li> <li><a href="#" target="_self" title="sample">sample</a></li> <li><a href="#" target="_self" title="sample">sample</a></li> <li><a href="#" target="_self" title="sample">sample</a></li> </ul> css: ul#menu{ margin:0; padding:0; list-style-type:none; width:auto; position:relative; display:block; height:40px; text-transform:uppercase; font-size:13px; background:transparent url("images/blue.jpg") repeat-x top left; font-family:Helvetica,Arial,Verdana,sans-serif; } ul#menu li{ display:block; float:left; margin:0; pading:0; border-right:1px solid #ffffff; } ul#menu li a{ display:block; float:left; color:#ffffff; text-decoration:none; padding:12px 20px 0 20px; height:24px; height:40px; } ul#menu li a:hover{ background:transparent url("images/black.jpg") repeat-x top left; } Ich habe schon das Forum durchsucht und einiges ausprobiert , aber es klappte nicht ![]() Ich bin euch für Tipps sehr dankbar. Eure Celine |
Sponsored Links |
|
|||
![]()
Gib deinen Menüs eine Klasse oder ID
Code:
<li id="home"><a href="#" target="_self" title="sample">sample</a></li> Über CSS sprichst du dann dein li-Element IM body mit der id="hauptseite" an. Code:
body#hauptseite li#home { background:transparent url("http://xhtmlforum.de/images/black.jpg") repeat-x top left; } ![]() |
Sponsored Links |
|
||||
![]()
Besser den Link entfernen (siehe FAQ, zweite Hälfte von Punkt 11).
__________________
Wer keinen Link auf seine problembehaftete Seite posten kann, weil diese noch nicht online ist: Testcase bauen, online stellen, Link posten. Internet-Grundregel: Unbekannte Begriffe googeln! (Erspart 99% aller Nachfragen.) |
![]() |
Themen-Optionen | |
Ansicht | |
|
|
![]() |
||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Hilfe css Menu center | xXcyberXx | CSS | 5 | 28.11.2010 19:51 |
CSS Flyout Menu funktioniert im IE nicht | deXx | CSS | 9 | 07.10.2010 16:01 |
Css Tree Fly Menu | thiagojonas | CSS | 7 | 30.12.2008 20:10 |
CSS Navigation aktiver Link | mimii | CSS | 0 | 25.08.2008 10:50 |
Horizontale Leiste mit Css und xhtml formatieren | bettina | CSS | 1 | 06.01.2007 12:49 |