×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: userc865b
Added: Aug 25, 2017 1:26 PM
Modified: Aug 25, 2017 1:30 PM
Views: 5
Tags: css
this is how to hover and set css a child when a parent hovers!!
  1. .easy-tree li.parent_li > span:hover, .easy-tree li.parent_li > span:hover a,.easy-tree li.parent_li > span>a:hover,.easy-tree li.parent_li > span:hover + ul li span,.easy-tree li.parent_li > span:hover + ul li span a {
  2.     background: #d65e2c;
  3.     color: #fff;
  4. }
  5.  
  6.  
  7. /**
  8.  * .easy-tree li.parent_li > span:hover--> Parent hovers!!
  9.  * .easy-tree li.parent_li > span:hover a--> Child!!
  10.  */