blob: 41ee0d44f9a3469a8c4f635210ace0fb5313d32a [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>:hover pseudo-class on links</title>
<style type="text/css">
p { color: navy; }
.a a:hover { background: green; color: white; }
.b a:hover { background: red; color: yellow; }
.b a:link { background: green; color: white; }
.c :link { background: green; color: white; }
.c :visited:hover { background: red; color: yellow; }
</style>
<link rel="first" href="css3-modsel-1.html" title="Groups of selectors">
<link rel="prev" href="css3-modsel-18.html" title=":hover pseudo-class">
<link rel="next" href="css3-modsel-18b.html" title=":hover pseudo-class">
<link rel="last" href="css3-modsel-d4.html" title="Dynamic updating of :first-child and :last-child">
<link rel="up" href="./index.html">
<link rel="top" href="../../index.html">
</head>
<body>
<p class="a">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should turn to green when the pointing device hovers over it.</p>
<p class="b">The background color of <a href="#foo">this anchor (<strong>here</strong>)</a> should <strong>remain green when you hover it</strong>.</p>
<p class="c">The background color of <a href="http://link.example.com/">this anchor (<strong>here</strong>)</a> should <strong>remain green when the pointing device hovers over it</strong> (do not follow that link).</p>
</body>
</html>