HTML CSS examples for CSS Widget:Color
CSS Change color on hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .delDoc {<!--from www . j av a 2 s . c o m--> color: transparent; font-size: 12px; cursor: pointer; } .liDoc:hover .delDoc { color: silver; } .liDoc:hover .delDoc:hover { color: red; } </style> </head> <body> <ul> <li class="liDoc"> <a href="">My link</a> <i>icon</i> </li> </ul> </body> </html>