A
A
arsenaljek2020-05-19 06:57:07
css
arsenaljek, 2020-05-19 06:57:07

Horizontal scrolling menu for mobile version?

Tell me how to make a horizontal scrolling of the top menu but only for viewing from the phone.
https://codepen.io/arsenaljek/pen/zYvMMrz
I added css

.tabbable .navbar-collapse {
       overflow-x: auto;
       overflow-y:hidden;
       flex-wrap: nowrap;
    }
    .tabbable .navbar-collapse .nav-link {
      white-space: nowrap;
    }

and assigned it to the nav class. On the mobile version everything works fine, but on the desktop the dropdown menu no longer opens due to overflow

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question