A
A
Alexander Ivanov2021-07-18 19:52:00
Web development
Alexander Ivanov, 2021-07-18 19:52:00

How to remove scroll up when collapsing a submenu?

there is such a beautiful menu
, everything would be fine, but when this menu is large and has also large submenus, it is logical when opening the page scrolls down, but when you click again to collapse the submenu, the page flies sharply to the very top, which is very inconvenient, as if the page overloaded, how to fix it???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Salim, 2021-07-19
@cyberchainik

Good afternoon, you can just add another # sign to the a tag
like this, then it will not fly up
<a href="##">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question