HTML CSS examples for CSS Widget:Hover class
Conditional hover with class name
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> li.mainList:hover + li li.childList { color:Chartreuse; } </style> <!--from ww w.j a va2s .co m--> </head> <body> <ul> <li class="mainList">Lor</li> <li>Lorem <ul> <li class="childList">Lor</li> <li class="childList">Lor</li> </ul> </li> <li>Lor</li> <li class="mainList">Lor</li> </ul> </body> </html>