+ 8

where is the problem ?

i want to make menu that when user hover on parent menu's name it change child menu's color i write this code like websites guid but it doesn't work where is the problem ?(and i want just use css to do it) https://code.sololearn.com/WeoIEnYAm8N0/?ref=app

21st Aug 2018, 5:49 AM
AliR૯za
AliR૯za - avatar
3 Réponses
+ 9
#parent:hover + #child{ color:red; }
21st Aug 2018, 6:15 AM
Hatsy Rei
Hatsy Rei - avatar
+ 7
Hatsy Rei Thank you
21st Aug 2018, 8:38 AM
AliR૯za
AliR૯za - avatar
+ 3
try it #parent:hover ~ #child{ color:red; }
22nd Aug 2018, 1:18 AM
Mr Genesis
Mr Genesis - avatar