Greetings I do not quite understand the logic of triggering: hover at the collapsed parent (when all the elements are inside float:left ). Tell me why this effect occurs? Example here, and on jsfiddle
https://jsfiddle.net/tayhatsu/a8k5jq4p/
.parent { background-color: red; } .parent:hover .child { opacity: .5; } .child { height: 100px; width: 100px; display: inline-block; float: left; background-color: green; margin: 20px; } .child:hover { opacity: 1 !important; } <div class="parent"> <div class="child"></div> <div class="child"></div> <div class="child"></div> </div>
display:float;? - user33274float: leftorfloat:right- Nermo