cybertramp
05.05.2009, 13:21
Hallo zusammen,
ich habe meine Kategorie-Navigation etwas umgebaut, was die Hintergründe und das Verhalten bei aktivierter Kategorie und MouSEO [ Suchmaschinen Optimierung ]ver angeht.
Grundsätzlich ist alles mti gleichem Hintergrund.
Beim MouSEO [ Suchmaschinen Optimierung ]ver wird der jeweilige Bereich mit rotem HIntergrundbild hinterlegt, das auch bei aktiver Kategorie angezeigt wird.
Wenn ich nun Unterkategorien aufrufe, ist jedoch die gesamte Hauptkategorie und die Unterkategorie mit dem roten Hintergrund hinterlegt.
Da das ziemlich dick aussieht, wenn ne Kategorie mit mehreren Unterkategorien aufgerufen wird, würde ich das gerne so umstellen, dass bei Kategorien mit Unterkategorien nur die jeweilig aktive Unterkategorie mit dem anderen Hintergrund hinterlegt wird.
Kann mir jemand einen Tipp geben, wie ich das ändere ? Ich prpobier nun schon seit Stunden rum und krieg nen Hirnwurm dabei.
Hier die categorie_navigation.css:
/ ################################################## ################################################## ############### /
/ ### Definition des Randes für die einzelnen Kategorieebenen + Text- und Hintergrundfarbe (Werte werden vererbt) ### /
/ ### width + padding-left = 100% ################################################## ################################# /
/ ################################################## ################################################## ############### /
/ ### 1.Ebende ### /
.catListBody ul li a {
****width: 95%;
****padding: 1px 0px 1px 5%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background: transparent url(../../img/boxhintergrund_Link [ Verweis auf andere Stelle der Webseite ]s.gif) no-repeat scroll center top;
}
/ ### 2.Ebende ### /
.catListBody ul li ul li a, .catListBody li.activeCat ul li a {
****width: 85%;
****padding: 1px 0px 1px 15%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 3.Ebende ### /
.catListBody ul li ul li ul li a , .catListBody li.activeCat li.activeCat ul li a{
****width: 80%;
****padding: 1px 0px 1px 20%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 4.Ebende ### /
.catListBody ul li ul li ul li ul li a , .catListBody li.activeCat li.activeCat li.activeCat ul li a {
****width: 80%;
****padding: 1px 0px 1px 20%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 5.Ebende ### /
.catListBody ul li ul li ul li ul li ul li a , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat ul li a {
****width: 75%;
****padding: 1px 0px 1px 25%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 6.Ebende ### /
.catListBody ul li ul li ul li ul li ul li ul li a , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat ul li a {
****width: 70%;
****padding: 1px 0px 1px 30%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat ul li a**{
****background-color:#F0D157;
****color: #1E1E1E;
}
/ ################################################## ########################################## /
/ ### MouseOver ################################################## ############################ /
/ ################################################## ########################################## /
/ ### 1.Ebende ### /
.catListBody li a:hover{
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
/ ### 2.Ebende ### /
.catListBody li li a:hover , .catListBody li.activeCat li a:hover{
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
/ ### 3.Ebende ### /
.catListBody li li li a:hover , .catListBody li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ### 4.Ebende ### /
.catListBody li li li li a:hover , .catListBody li.activeCat li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ### 5.Ebende ### /
.catListBody li li li li li a:hover , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ### 6.Ebende ### /
.catListBody li li li li li li a:hover , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ################################################## ########################################## /
/ ### Aktive Kategorie ################################################## ##################### /
/ ################################################## ########################################## /
.catListBody li.activeCat a {
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
.catListBody li.activeCat li.activeCat a {
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
.catListBody li.activeCat li.activeCat li.activeCat a ,
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat a ,
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat a ,
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat a {
****background-color: #000;
****color: #FFF;
}****
}
Ein Bild von nicht aktiver und aktiver Kat. häng ich Euch mal dran, damit meine wirre Schilderung vielleicht etwas verständlicher wird:
http://freenet-homepage.de/info_sandra/beispiel.jpg
Link [ Verweis auf andere Stelle der Webseite ]s ist also der inaktive Kat-Baum und rechts die aktivierte Unterkategorie - ich möchte aber, dass nur z.B. die aktive Sirup-Unterkategorie rot hinterlegt wird - der Rest soll bitte den normalen HIntergrund behalten...
äh.. ja.. hoffe, es wird jemand schlau draus ;-)
ich habe meine Kategorie-Navigation etwas umgebaut, was die Hintergründe und das Verhalten bei aktivierter Kategorie und MouSEO [ Suchmaschinen Optimierung ]ver angeht.
Grundsätzlich ist alles mti gleichem Hintergrund.
Beim MouSEO [ Suchmaschinen Optimierung ]ver wird der jeweilige Bereich mit rotem HIntergrundbild hinterlegt, das auch bei aktiver Kategorie angezeigt wird.
Wenn ich nun Unterkategorien aufrufe, ist jedoch die gesamte Hauptkategorie und die Unterkategorie mit dem roten Hintergrund hinterlegt.
Da das ziemlich dick aussieht, wenn ne Kategorie mit mehreren Unterkategorien aufgerufen wird, würde ich das gerne so umstellen, dass bei Kategorien mit Unterkategorien nur die jeweilig aktive Unterkategorie mit dem anderen Hintergrund hinterlegt wird.
Kann mir jemand einen Tipp geben, wie ich das ändere ? Ich prpobier nun schon seit Stunden rum und krieg nen Hirnwurm dabei.
Hier die categorie_navigation.css:
/ ################################################## ################################################## ############### /
/ ### Definition des Randes für die einzelnen Kategorieebenen + Text- und Hintergrundfarbe (Werte werden vererbt) ### /
/ ### width + padding-left = 100% ################################################## ################################# /
/ ################################################## ################################################## ############### /
/ ### 1.Ebende ### /
.catListBody ul li a {
****width: 95%;
****padding: 1px 0px 1px 5%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background: transparent url(../../img/boxhintergrund_Link [ Verweis auf andere Stelle der Webseite ]s.gif) no-repeat scroll center top;
}
/ ### 2.Ebende ### /
.catListBody ul li ul li a, .catListBody li.activeCat ul li a {
****width: 85%;
****padding: 1px 0px 1px 15%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 3.Ebende ### /
.catListBody ul li ul li ul li a , .catListBody li.activeCat li.activeCat ul li a{
****width: 80%;
****padding: 1px 0px 1px 20%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 4.Ebende ### /
.catListBody ul li ul li ul li ul li a , .catListBody li.activeCat li.activeCat li.activeCat ul li a {
****width: 80%;
****padding: 1px 0px 1px 20%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 5.Ebende ### /
.catListBody ul li ul li ul li ul li ul li a , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat ul li a {
****width: 75%;
****padding: 1px 0px 1px 25%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
/ ### 6.Ebende ### /
.catListBody ul li ul li ul li ul li ul li ul li a , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat ul li a {
****width: 70%;
****padding: 1px 0px 1px 30%;
****color: #1E1E1E;
****border-bottom: 1px #fff solid;
****background-color:#F0D157;
}
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat ul li a**{
****background-color:#F0D157;
****color: #1E1E1E;
}
/ ################################################## ########################################## /
/ ### MouseOver ################################################## ############################ /
/ ################################################## ########################################## /
/ ### 1.Ebende ### /
.catListBody li a:hover{
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
/ ### 2.Ebende ### /
.catListBody li li a:hover , .catListBody li.activeCat li a:hover{
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
/ ### 3.Ebende ### /
.catListBody li li li a:hover , .catListBody li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ### 4.Ebende ### /
.catListBody li li li li a:hover , .catListBody li.activeCat li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ### 5.Ebende ### /
.catListBody li li li li li a:hover , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ### 6.Ebende ### /
.catListBody li li li li li li a:hover , .catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat li a:hover{
****background-color:#000; color: #fff;
****Text-decoration: none;
}
/ ################################################## ########################################## /
/ ### Aktive Kategorie ################################################## ##################### /
/ ################################################## ########################################## /
.catListBody li.activeCat a {
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
.catListBody li.activeCat li.activeCat a {
****background: transparent url(../../img/box__li_hintergrundrot.gif) no-repeat scroll center top;
****color: #1E1E1E;
****Text-decoration: none;
****font-weight: bold;
}
.catListBody li.activeCat li.activeCat li.activeCat a ,
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat a ,
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat a ,
.catListBody li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat li.activeCat a {
****background-color: #000;
****color: #FFF;
}****
}
Ein Bild von nicht aktiver und aktiver Kat. häng ich Euch mal dran, damit meine wirre Schilderung vielleicht etwas verständlicher wird:
http://freenet-homepage.de/info_sandra/beispiel.jpg
Link [ Verweis auf andere Stelle der Webseite ]s ist also der inaktive Kat-Baum und rechts die aktivierte Unterkategorie - ich möchte aber, dass nur z.B. die aktive Sirup-Unterkategorie rot hinterlegt wird - der Rest soll bitte den normalen HIntergrund behalten...
äh.. ja.. hoffe, es wird jemand schlau draus ;-)