Answer the question
In order to leave comments, you need to log in
How to fix sidebar?
There is a site caddysmellsliketrees.ru. With grief, I made a sidebar and an accordion menu in half. But I was tormented by bugs that I don't have enough knowledge to fix: the height of the sidebar remains expanded even after shrinking the accordion, clicking on links from the menu does not work in mobile browsers. Sources are here .
Answer the question
In order to leave comments, you need to log in
The problem is that the drop-down menu block, although hidden, takes up space:
.dropdown{
position: absolute;
bottom: -100vh;
visibility: hidden
}
ul.navigation__list.dropdown{
height: 0;
overflow-y: hidden;
}
.dropdown__toggle:hover>.dropdown{
height: auto;
overflow-y: visible; //или scroll
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question