CSS underline color on links

by Rekha 2009-04-28 09:52:39

To make underline color change on links you can use the following format,

<html
<head>
<style>
a:hover{color:#f00;}
a{text-decoration:underline;}
span.link{color:#000;}
</style>
</head>
<body>
</body>
</html>


You can also use borders instead of text-decoration

a:link {
text-decoration:none;
border-bottom:1px solid black;
}

a:visited {
border-bottom:1px solid grey;
}

a:hover {
border-bottom:1px solid red;
}
3578
like
0
dislike
0
mail
flag

You must LOGIN to add comments