Q
Q
Quiterio2019-07-18 14:28:15
User navigation
Quiterio, 2019-07-18 14:28:15

Dropdown menu per kilometer, how to fix?

Good day. In general, I made a drop-down menu, it opens, but ... In general, it turns out in a different block.

html
<nav class="header__top-nav" id="navLinks">
            <ul>
            <li><a href="#" class="header__top-nav-link">меню</a>
              <ul>
                <li><a href="#">123</a></li>
            </ul>

          </li>


css
ul{
  display: flex;
}

ul ul{
    display: none;
    position: absolute;
    top: 100%;
}

nav ul li:hover > ul {
    display:inherit;
}

 ul ul li {
    min-width:170px;
    float:none;
    display:list-item;
    position: relative;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
Quiterio, 2019-07-18
@Quiterio

I decided. removed in css
top: 100%;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question