Hey Leute,
ich habe mir eine Navigationsleiste mit CSS und HTML gemacht.
Hier die Codes:
HTML:
Und der CSS Code:
Nun möchte ich das so machen, dass wenn ich auf der Startseite bin, der "Knopf" in der Navigationsleiste eine andere Farbe animmt, damit man sieht auf welcher Seite man ist.
Wäre nett wenn ihr mir helft. :)
Vielen Dank ;)
ich habe mir eine Navigationsleiste mit CSS und HTML gemacht.
Hier die Codes:
HTML:
HTML:
<html><head><link rel = "stylesheet" type = "text/css" href = "style.css"</head><body> <ul><li><a href= "bsp.html">Beispiel</a> </li> <li><a href= "bsp1.html">Beispiel1</a> </li> </ul> </body></html>
Und der CSS Code:
Code:
@import url(dropdown.css);
body {margin:0; padding:0;}
ul {background-image:url(navi.jpg); height:60px; width: 100%;}
li {float:left;}
ul a {color:white; padding-left:32px; padding-right:32px; text-decoration:none; line-height:60px; font-size:20px; background-image:url(line.png); background-repeat:no-repeat; display:block;}
ul a:hover {color:white; background-color:black;}
Nun möchte ich das so machen, dass wenn ich auf der Startseite bin, der "Knopf" in der Navigationsleiste eine andere Farbe animmt, damit man sieht auf welcher Seite man ist.
Wäre nett wenn ihr mir helft. :)
Vielen Dank ;)