D
D
Daniil Ivanov2021-07-22 11:21:25
css
Daniil Ivanov, 2021-07-22 11:21:25

How to make that when opening one element, the other goes down?

Here is my code, but I don't understand how to make the second dropdwn go down when opening the under block
https://jsfiddle.net/danilious/bedg7wzf/1/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aagzip, 2021-07-22
@danilious

Change position: absolute to position: relative on .dropdown-content, or remove position altogether.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question