Hello,

Ik ben bezig met een website, nu heb ik de kleuren enz. aangegeven voor hyperlinks in een stylesheet, maar nu moet ik een aantal links hebben die een andere kleur/groote hebben.

Hoe kan ik dit vanuit de Stylesheet doen?
<html>
<head>
<style>
/* Alle hyperlinks */
A:link{color:#7D5D3F; text-decoration:none}
A:visited{color:#7D5D3F; text-decoration:none}
A:active{color:#7D5D3F; text-decoration:none}
A:hover{color:#FF0000; text-decoration:none}

/* link1 hyperlinks */
A.link1:link{color:#000000; text-decoration:none}
A.link1:visited{color:#000000; text-decoration:none}
A.link1:active{color:#000000; text-decoration:none}
A.link1:hover{color:#FF0000; text-decoration:none}
</style>
</head>
<body>
<a href="./">bladiebla</a>
<a href="./" class="link1">bladiebla</a>
</body>
</html>
Door het volgende toe te voegen aan je Stylesheet:

bv link 1:

.font {
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: Arial, Helvetica, sans-serif

bv link 2:

.test {
FONT-SIZE: 15px; COLOR: #FF3300; FONT-FAMILY: Arial, Helvetica, sans-serif


Vanuit je pagina roep je dit op met:

<a class="font" href="jouw link">je linknaam</a>

<a class="test" href="jouw link">je linknaam</a>

Groeten Patrick...

okee dnak jullie wel :)

Reageren