PHP ver gevorderde |
|
Ik wil alle links op mijn site in het vet, buiten degene die ik class="nobold" geef.
Ik doe het op de volgende manier:
A.nobold:link { color: <?=$link?>; text-decoration: none; font-weight: none}
A.nobold:visited { color: <?=$link?>; text-decoration: none; font-weight: none}
A.nobold:active { color: <?=$link?>; text-decoration: none; font-weight: none}
A.nobold:hover { color: <?=$link?>; text-decoration: underline; font-weight: none}
A:link { color: <?=$link?>; text-decoration: none; font-weight: bold}
A:visited { color: <?=$link?>; text-decoration: none; font-weight: bold}
A:active { color: <?=$link?>; text-decoration: none; font-weight: bold}
A:hover { color: <?=$link?>; text-decoration: underline; font-weight: bold}
A.nobold:link { color: <?=$link?>; text-decoration: none; font-weight: none} A.nobold:visited { color: <?=$link?>; text-decoration: none; font-weight: none} A.nobold:active { color: <?=$link?>; text-decoration: none; font-weight: none} A.nobold:hover { color: <?=$link?>; text-decoration: underline; font-weight: none} A:link { color: <?=$link?>; text-decoration: none; font-weight: bold} A:visited { color: <?=$link?>; text-decoration: none; font-weight: bold} A:active { color: <?=$link?>; text-decoration: none; font-weight: bold} A:hover { color: <?=$link?>; text-decoration: underline; font-weight: bold}
(die php is geen probleem)
<a href="linkje" class="nobold">Blijft toch in het vet</a>
|