J
J
Jevgenii2018-09-25 22:54:28
css
Jevgenii, 2018-09-25 22:54:28

How to interact with block2 by hovering over block1?

.a:hover .i
display: none it is
necessary that when you hover over the .a class, the .i class changes . The
above construction does not work. I write in sass

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2018-09-26
@Jevgenii

<div class="a"></div>
<div class="b"></div>

.a:hovet ~ .b {
 display:none;
}

or
.a:hovet + .b {
 display:none;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question