HTML CSS examples for CSS Widget:Hover on list
apply a class on <li> when mouse is hovering on it
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .list-group-item:hover {<!--from w w w .j av a 2 s . com--> color:Chartreuse; } </style> </head> <body> <ul class="list-group"> <li class="list-group-item">Lorem ipsu</li> <li class="list-group-item">Lorem ipsum</li> <li class="list-group-item">Lorem ipsu</li> </ul> </body> </html>