HTML CSS examples for CSS Widget:Hover to change
Change css property of all the other elements li of ul on hovering
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #list {<!-- ww w . j av a 2 s . c o m--> background-color:Chartreuse; list-style-type:none; padding:0; } #list:hover { background-color:yellow; } .element:hover { background-color:blue; } </style> </head> <body> <ul id="list"> <li class="element">Lorem ips</li> <li class="element">Lorem ips</li> <li class="element">Lorem ips</li> <li class="element">Lorem ips</li> </ul> </body> </html>