kaepten
Mitglied
Hallo,
Ich möchte das meine aktuelle Seite auch "dicke" Striche hat.
Ich habe es bis jetzt nur das wenn man drüber geht es dicke Striche gibt.
Wie bekomme ich jetzt hin das der Strich von der aktuellen "Seite" dick wird.
Und die textfarbe rot?
Ich möchte das meine aktuelle Seite auch "dicke" Striche hat.
Ich habe es bis jetzt nur das wenn man drüber geht es dicke Striche gibt.
HTML:
<nav>
<a class ="navi" href="index.html"><img src="bilder/930.png" alt="BKWI" width="43" height="43"/>
<a class="navi" href="informatik.html">Informatik</a>
<a class="navi" href="schulplan.html">Fächer</a>
<a class="navi" href="anmeldeformular.html">Anmeldeformular</a>
<a class="navi" href="kontakt.html">Kontakt</a>
</nav>
Code:
a.navi
{
display: block;
padding: 0.5rem;
border-top: 0.1rem solid black;
margin: 0.5rem;
text-decoration: none;
text-underline: none;
color: 000000;
}
a.navi:hover
{
padding-top: 0.4rem;
border-top: 0.2rem solid black;
}
a.navi:visited
{
text-decoration: none;
text-underline: none;
color: 000000;
}
a.navi:active
{
padding-top: 0.4rem;
border-top: 0.2rem solid black;
color: red;
}
Wie bekomme ich jetzt hin das der Strich von der aktuellen "Seite" dick wird.
Und die textfarbe rot?