Selecting all links except hovered one using :not - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Link

Description

Selecting all links except hovered one using :not

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">
div:hover a:not(:hover) {
   color:Chartreuse;
}
</style> <!--from  w w w  . j ava 2s .  co m-->
 </head> 
 <body> 
  <div> 
   <a href="#">Lore</a> 
   <a href="#">Lore</a> 
   <a href="#">Lore</a> 
  </div>  
 </body>
</html>

Related Tutorials