Change Anchor underline decoration when mouse hover : a.hover « Tags « HTML / CSS






Change Anchor underline decoration when mouse hover

     
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style rel="stylesheet" type="text/css">

#list {
  background-image: url(images/list_bg.gif);
  background-position: top left;
  background-repeat: repeat-y;
  width: 214px;
  margin: 5px 0 0 0;
  float: left
}

#list ul {
  padding: 21px 0 30px 16px;
  list-style-type: none
}

#list div {
  padding: 21px 0 30px 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #595959;
}

#list div p {
  width: 185px;
  padding: 5px 0 5px 3px
}

#list li a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #595959;
  text-decoration: underline;
  background-image: url(images/arrow.gif);
  background-position: top left;
  background-repeat: no-repeat;
  line-height: 24px;
  padding: 0 0 3px 22px;
}

#list a:visited {
  text-decoration: underline
}

#list a:hover {
  text-decoration: none
}



</style>
</head>
<body>

      <div id="list">
        <ul>
          <li><a href="#">Lorem ipsum dolor</a></li>
          <li><a href="#">Mauris urna</a></li>
          <li><a href="#">Maecenas hendrerit</a></li>
          <li><a href="#">Proin nunc</a></li>
          <li><a href="#">Donec nonummy, tellus</a></li>
          <li><a href="#">Aenean sit amturpis</a></li>
          <li><a href="#">Lorem ipsum dolor sit amet</a></li>
          <li><a href="#">Massa ac laoreet iaculipede</a></li>
          <li><a href="#">Lorem ipsum</a></li>
          <li><a href="#">Donec nonummy</a></li>
        </ul>
      </div>
      
</body>

</html>

   
    
    
    
    
  








Related examples in the same category

1.a:hover text-decoration:underline;
2.a:hover background-color:#ccffff;
3.a:hover, a:active text-decoration: underline overline;
4.Link visted hover
5.Link visted hover active
6.Link visted hover active focus
7.a:hover text-decoration:underline; background-color:#ccffff;
8.A link with a title attribute - hover over the link to see the tooltip appear
9.a:hover text-decoration: none;
10.a:hover color: #369;
11.a:hover background: inherit;
12.Update image while mouse hover
13.a:hover {color: red; text-decoration: underline;}
14.Anchor with solid background, and hover effect
15.anchor based mouse hover effect
16.Hover Anchor Style inside a LI
17.Change background position for anchor when mouse hover
18.a:hover color: #B29B35;
19.a:hover color: yellow;