Active CSS Hilfe
Posted: Wed 21. Nov 2007, 22:58
Hallo zusammen!
Wie kann ich meiner CSS Datei beibringen das ein angeklickter link als active angezeigt wird. Beispielsweise in Form der hover Farbe.
Also wenn ich mit der Maus über meine Navigationslink gehe wird der hintergrund des links Blau und ich möchte das der Blau bleibt wenn ich diesen links dann anklicke so das man sieht welcher link gerade aktiv ist.
Hier der Auszug aus meiner CSS der für die Navigation zuständig ist.
#navigation {
padding: 5px;
height: 14px;
background-color: #9999A3;
margin-bottom: 11px;
margin-top: 1px;
font-family: verdana, arial, sans-serif;
font-size: 12px;
}
#navigation a, #navigation a:link {
padding: 5px;
color: #FFFFFF;
height: 14px;
font-weight: normal;
font-family: verdana, arial, sans-serif;
font-size: 12px;
}
#navigation a:hover {
padding: 5px;
color: #FFFFFF;
background-color: #537DB3;
height: 14px;
text-decoration: underline;
font-family: verdana, arial, sans-serif;
font-size: 12px;
Viele Grüsse
Frank
Wie kann ich meiner CSS Datei beibringen das ein angeklickter link als active angezeigt wird. Beispielsweise in Form der hover Farbe.
Also wenn ich mit der Maus über meine Navigationslink gehe wird der hintergrund des links Blau und ich möchte das der Blau bleibt wenn ich diesen links dann anklicke so das man sieht welcher link gerade aktiv ist.
Hier der Auszug aus meiner CSS der für die Navigation zuständig ist.
#navigation {
padding: 5px;
height: 14px;
background-color: #9999A3;
margin-bottom: 11px;
margin-top: 1px;
font-family: verdana, arial, sans-serif;
font-size: 12px;
}
#navigation a, #navigation a:link {
padding: 5px;
color: #FFFFFF;
height: 14px;
font-weight: normal;
font-family: verdana, arial, sans-serif;
font-size: 12px;
}
#navigation a:hover {
padding: 5px;
color: #FFFFFF;
background-color: #537DB3;
height: 14px;
text-decoration: underline;
font-family: verdana, arial, sans-serif;
font-size: 12px;
Viele Grüsse
Frank