HTML CSS examples for CSS Widget:Hover Effect
Add Hover effect for two elements at the same time
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #dad:hover #bro {<!-- w w w . ja v a 2s .c o m--> background:red; } #dad:hover #sis { background:green; } </style> </head> <body> <div id="dad"> <div id="bro"> Lor </div> <div id="sis"> Lor </div> </div> </body> </html>