HTML CSS examples for CSS Widget:Hover class
call another class on hover in CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .first {<!-- ww w . j a v a 2 s . c om--> background:Chartreuse; } .first:hover { background:yellow; cursor:pointer; } </style> </head> <body> <div class="first"> Lorem ipsum d </div> </body> </html>