M
M
ma1zahar2021-06-11 22:58:41
css
ma1zahar, 2021-06-11 22:58:41

Why doesn't the block appear on hover?

How to make it so that when you hover over Block 1, Block 2 and Block 3 appear, but then when you move the mouse to Block 3, Block 2 does not disappear?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Leleka, 2021-06-12
@Laweb

In this structure, html cannot be done using css, only through js, jquery
Or change the html structure

<div id="content">
  <div class="one">
     <div class="two"></div>
     <div class="three"></div>
  </div> 
</div>

.one:hover .two,
.one:hover .three{
display: block;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question