Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove a box-shadow effect from an element when another element is hovered?

Tags:

html

jquery

css

Structure:

 <div class="box">
      <div class="inner_box">
      </div>
 </div>

.inner_box has a box-shadow effect. When .box is hovered I want to remove shadow effect from .inner_box. Besides using JQuery, is there another way I can do this, preferably CSS3?

Please also show me examples of how i can do this in JQuery. Thanks!

like image 575
ariel Avatar asked Aug 30 '25 14:08

ariel


1 Answers

Just use this css this will work DEMO HERE

.box:hover .inner_box {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}
like image 196
Love Trivedi Avatar answered Sep 04 '25 07:09

Love Trivedi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!