Onclick farbe von Link ändern
Hallo ich habe folgendes vor:
ich habe eine Liste mit Namen (sind mitals Link gekennzeichnet) und auf den Klick soll neben der Liste ein Bild von der Person angezeigt werden. Das funktioniert auch soweit, aber ich möchte das wenn ein auf ein Link klicke dieser Grau hinterlegt wird (wenn das nicht möglich ist in einer Liste dann nur die Farbe der Schrift geändert wird).
Hat Jemand eine Idee wie dies funktioniert?
Danke schonmal.
MfG Michael
ich habe eine Liste mit Namen (sind mit
<a href>
Hat Jemand eine Idee wie dies funktioniert?
Danke schonmal.
MfG Michael
Please also mark the comments that contributed to the solution of the article
Content-Key: 100002
Url: https://administrator.de/contentid/100002
Printed on: June 9, 2023 at 14:06 o'clock
1 Comment
Hi,
dies kannst Du per CSS regeln
Kannste bei Gelegenheit anpassen.
Gruß Kuli
dies kannst Du per CSS regeln
<style>
a {
color: #FFF;
text-decoration: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
a:hover {
color: #CCC;
text-decoration: underline;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
a:visited {
color: #F00;
text-decoration: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
a:active {
color: #F00;
text-decoration: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
</style>
Kannste bei Gelegenheit anpassen.
Gruß Kuli