a:hover : Anchor class « Tags « HTML / CSS
- HTML / CSS
- Tags
- Anchor class
a:hover
<!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='en'>
<head>
<title>Dynamic Pseudo-Classes</title>
<style rel='stylesheet' type='text/css'>
ul {
list-style: none;
margin: 0;
padding: 0;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<ul>
<li><a href='http://www.java2s.com/'>http://www.java2s.com/</a></li>
<li><a href='http://www.java2s.com/'>http://www.java2s.com/</a></li>
<li><a href='http://www.java2s.com/'>http://www.java2s.com/</a></li>
<li><a href='http://www.java2s.com/'>http://www.java2s.com/</a></li>
</ul>
</body>
</html>
Related examples in the same category
1. | Pseudo-class Selectors for anchor | | |
2. | a:link | | |
3. | a:visited | | |
4. | a:active | | |
5. | Link visited hover | | |
6. | link visited, hover, active | | |
7. | link visited, hover, active, focus | | |
8. | Set anchor hover in under | | |
9. | Set anchor link and visited: a:link, a:visited | | |
10. | Set different color for anchor link and visited link | | |
11. | Set color for anchor link, anchor visited, hover and active | | |
12. | Set different anchor link style for navigation and content | | |
13. | style for email anchor, | | |
14. | Three level nesting for anchor link style setting | | |
15. | Three level nesting for visited link style setting | | |
16. | Three level nesting for visited link style setting for two | | |
17. | Three level nesting for an anchor with id | | |
18. | background image, repeat and position for anchor link hover | | |
19. | background image, repeat and position for anchor link active | | |
20. | Use anchor hover to highlight more than one tags | | |
21. | Add border to anchor when hover | | |
22. | a[href^='http://']:hover | | |
23. | Rollover with image | | |
24. | Set cursor for a link | | |
25. | Anchor background-color: blue; | | |
26. | Anchor background-position: top left; | | |
27. | Anchor background-repeat: no-repeat; | | |
28. | Anchor height: 35px; | | |
29. | Anchor display: block; | | |
30. | Anchor float: left; | | |
31. | Anchor font-family: Arial, Helvetica, sans-serif; | | |
32. | Anchor font-size: 12px; | | |
33. | Anchor color: red; | | |
34. | Anchor text-decoration: none; | | |
35. | Anchor text-align: center | | |
36. | Anchor color: #FCEACE; | | |