-1

i want to change other element outside current element level in CSS3. i have tried to use plus symbol but still not working.

    <div id="a">
<div id="a_1">
<ul>

<li>test1</li>
<li>test2</li>
</ul>
</div>
</div>

<div id="b">
</div>

i want to change #b background-color i try this but not still work

a ul li:hover #b{
background-color:blue;
}

and also tried this but not working too

a ul li:hover + #b{
background-color:blue;
}
Alien
  • 3,658
  • 1
  • 16
  • 33
Obiyofin
  • 93
  • 2
  • 5

1 Answers1

0

You must use JavaScript or JQuery for that.

valicu2000
  • 441
  • 5
  • 19