yuston
samedi 5 juillet 2008 à 14:22
Salut,
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-style-type" content="text/css" />
<title>Test liens</title>
<style type="text/css">
<!--
body{
margin: 0;
padding: 0;
font-size: 100%;
}
a:link{
color: blue;
text-decoration: none;
}
a:visited{
color: yellow;
text-decoration: none;
}
a:active{
color: red;
text-decoration: none;
}
a:hover{
color: green;
text-decoration: underline;
}
-->
</style>
</head>
<body>
<p>
<a href="http://www.yahoo.fr">Premier lien</a> - <a href="http://www.google.com">Deuxième lien</a> -
<a href="http://www.live.com">Troisième lien</a> - <a href="http://www.unsitepasvisite.eu">Quatrième lien</a>
</p>
</body>
</html>
Je viens de tester ça, y a aucun problème. Même avec un A en majuscule. Par contre, faut faire attention avec les liens visités, selon l'ordre dont tu déclares le style, les effets ne se verront pas. Il faut d'abord les liens visités et après les liens survolés!