+ 7

How To trigger Some Element With Css While Hovering On Another One....

I have Tried Nesting But Its Not Working Code Is Below...... <div id ="wrap"> <div id ="king" ></div> <div id ="queen"></div> <div id ="army_general"></div> <div id ="kings_advisor"></div> <div id="best_assassinator"></div> <div id = "side"></div> </div> #side:hover{ background-color: black; /* opacity: 0.2; */ width: 1000px; font-size: 60px; } #wrap:hover #side{ background-color: black; opacity: 0.2; width: 1000px; font-size: 60px; } I want To Trigger Side Only Whenever I hover any of these.....

23rd Jan 2019, 10:13 AM
Aditya
Aditya - avatar
10 ответов
+ 4
That is Correct Sir That's Was My Problem Thank You Very Much!!....😊
23rd Jan 2019, 6:47 PM
Aditya
Aditya - avatar
+ 3
div:hover #side { /*CSS rules*/ }
23rd Jan 2019, 12:52 PM
Seniru
Seniru - avatar
+ 3
Can you explain?
23rd Jan 2019, 1:57 PM
Aditya
Aditya - avatar
+ 3
Thanks Sir BroFar That nav helped me and There was a Problem in postion. and This Is My Final Solution https://code.sololearn.com/WH21OPpL65cE
23rd Jan 2019, 6:27 PM
Aditya
Aditya - avatar
+ 2
You know what, paste the complete html and css on a code playground and send me the link let me debug it. The styles here is incomplete.
23rd Jan 2019, 3:27 PM
africana
africana - avatar
+ 2
Aditya revisit code
23rd Jan 2019, 6:46 PM
BroFar
BroFar - avatar
+ 2
There is a problem in ur code... U didnot set any width to those element , So u cant actually hover them or touch them.... To effect the #side div.... https://code.sololearn.com/W69tsHC5hYcv/?ref=app
25th Jan 2019, 2:12 AM
Legend Tariq
Legend Tariq - avatar
+ 1
I am again fail to explain.... 😯
17th Jul 2019, 12:42 PM
Legend Tariq
Legend Tariq - avatar