Change element CSS by hovering another - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to change

Description

Change element CSS by hovering another

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.exemple:hover + .exemple2 .element {<!-- ww  w . j a  v a 2s  .c  om-->
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="exemple">
    Lorem ips 
  </div> 
  <div class="exemple2">
    Lorem ipsu 
   <div class="element">
     Lorem ips 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials