M
M
masteban2018-02-12 20:20:17
css
masteban, 2018-02-12 20:20:17

Why does the block slide down when opening the menu?

https://jsfiddle.net/2ydsfs5j/
How to make a dropdown menu not affect the rest of the page content?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2018-02-12
@KickeRockK

position: relative;
The element depends on the position of the previous block, i.e. the previous element increases the height - the current element moves. Alternatively, give a height to the previous element (.b-page__line).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question