Hallo.
Ich habe ein Problen und weiß nicht wie ich es lösen soll mittels CSS.
Ich habe einmal ganz normale Links mit
Nun habe ich aber noch eine Navigation wo sich das Hintergrundbild ändern soll.
Bisher habe ich es so versucht aber es funktioniert nicht.
Kann mir da jemand bei Helfen? Danke schonmal im Vorraus.
Gruss Rambo51
// edit 1
ok habe es jetzt doch selber geschafft allerdings gibt es jetzt noch ein problem!
Wenn ich jetzt über ein Link drüber gehe mit der Maus, dann zeigt er das falsche "Over"-Bild
Es wird immer das gleiche "Over"-Bild angezeigt. Also bei .navigation wird das "over"-Bild von .navigationunten angezeigt und das gleiche ist bei .navigationoben.
Und es ist zwischen jedem Bild 1px abstand das sollte eigentlich auch nicht so sein!
Bitte helft mir!
Gruss Rambo51
// edit 2
Habs selber gelöst!
Ich habe ein Problen und weiß nicht wie ich es lösen soll mittels CSS.
Ich habe einmal ganz normale Links mit
HTML:
a:link {
color: #000000; text-decoration: none;
}
a:visited {
color: #000000; text-decoration: none;
}
a:hover {
color: #A59B87; text-decoration: none;
}
a:active {
color: #000000; text-decoration: none;
}
)
Nun habe ich aber noch eine Navigation wo sich das Hintergrundbild ändern soll.
Bisher habe ich es so versucht aber es funktioniert nicht.
HTML:
.navigation (
a:link {
color: #000000; text-decoration: none; background-image:url(images/nav_linkbg.jpg)}
a:visited {
color: #000000; text-decoration: none;}
a:hover {
color: #A59B87; text-decoration: underline; background-image:url(images/nav_linkbg_over.jpg)}
a:active {
color: #000000; text-decoration: none;}
)
Kann mir da jemand bei Helfen? Danke schonmal im Vorraus.
Gruss Rambo51
// edit 1
ok habe es jetzt doch selber geschafft allerdings gibt es jetzt noch ein problem!
Wenn ich jetzt über ein Link drüber gehe mit der Maus, dann zeigt er das falsche "Over"-Bild
HTML:
.navigation
a {
color: #000000; text-decoration: none; background-image:url(images/nav_linkbg.jpg); width:100%;}
a:visited {
color: #000000; text-decoration: none; width:100%;}
a:hover {
color: #A59B87; text-decoration: underline; background-image:url(images/nav_linkbg_over.jpg); width:100%;}
a:active {
color: #000000; text-decoration: none; width:100%;}
.navigationoben
a{
color: #000000; text-decoration: none; background-image:url(images/2teoben_nav.jpg); width:100%;}
a:visited {
color: #000000; text-decoration: none; width:100%;}
a:hover {
color: #A59B87; text-decoration: underline; background-image:url(images/2teoben_nav_over.jpg); width:100%;}
a:active {
color: #000000; text-decoration: none; width:100%;}
.navigationunten
a {
color: #000000; text-decoration: none; background-image:url(images/2teunten_nav.jpg); width:100%;}
a:visited {
color: #000000; text-decoration: none; width:100%;}
a:hover {
color: #A59B87; text-decoration: underline; background-image:url(images/2teunten_nav_over.jpg); width:100%;}
a:active {
color: #000000; text-decoration: none; width:100%;}
Es wird immer das gleiche "Over"-Bild angezeigt. Also bei .navigation wird das "over"-Bild von .navigationunten angezeigt und das gleiche ist bei .navigationoben.
Und es ist zwischen jedem Bild 1px abstand das sollte eigentlich auch nicht so sein!
Bitte helft mir!
Gruss Rambo51
// edit 2
Habs selber gelöst!