HTML CSS examples for CSS Widget:Hover to change
Change Div Tag Properties on Hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div:hover>a { background:red; } div:hover + span { background:red; } div:hover~ul { background:red; } </style> <!--from w ww. j a v a 2 s. c om--> </head> <body> <div> Lorem ipsum d <a href="#">Lorem ipsum</a> </div> <span>Lorem ipsum d</span> <ul> <li>Lorem ips</li> </ul> <br> <br> <br> <br> <br> <br> <br> <br> <br> <ul> <li>Lorem ips</li> </ul> </body> </html>