S
S
Spartak2021-12-20 18:19:24
css
Spartak, 2021-12-20 18:19:24

How to wrap items in a horizontal menu?

Horizontal menu (on Uikit 3) - with a large number of items, it does not wrap to another line, but goes beyond the screen (see screenshot)

spoiler

61c09d7435085753367370.png

The menu is standard according to the documentation from the office. Uikit 3 website
spoiler

<nav class="uk-navbar-container" uk-navbar>
    <div class="uk-navbar-left">
        <ul class="uk-navbar-nav">
            <li class="uk-active"><a href=""></a></li>
            <li class="uk-parent"><a href=""></a></li>
            <li><a href=""></a></li>
......................  здесь еще пункты меню
        </ul>
    </div>
</nav>


How can I fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xdevelx, 2021-12-20
@Spartak-rnd

.uk-navbar-nav {
  flex-wrap: wrap; 
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question