| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
| <html> |
| <head> |
| <title>:hover pseudo-class</title> |
| <style type="text/css">div:hover > p:first-child { background-color : lime }</style> |
| <link rel="first" href="css3-modsel-1.html" title="Groups of selectors"> |
| <link rel="prev" href="css3-modsel-18a.html" title=":hover pseudo-class on links"> |
| <link rel="next" href="css3-modsel-18c.html" title=":hover pseudo-class on links"> |
| <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> |
| <div> |
| <p>The background color of this paragraph should turn to green when the mouse pointer hovers over any of the following:<br><strong>This text.</strong></p> |
| <p>This text.</p> |
| <table><tr><td><table><tr><td><dl><dt>This text.</dt><dd>This text.</dd></dl></td></tr></table></td></tr><tr><td>This text.</td></tr></table> |
| <p><sub>This text.</sub></p> |
| <p>...and anything else between the top of the first paragraph and the bottom of this paragraph.</p> |
| </div> |
| </body> |
| </html> |