Site logo

Archived topic

Size of sub-menu

5 replies · Started by Tan on July 15, 2022

Viewing posts 1–6 of 6

I want to adjust sub-menu size of sticky menu equal to sub-menu of primary menu.
You can see the problem here and here.
How can I do it?

Hi there,

1. change this CSS:

nav .main-nav .mega-menu > ul {
    position: absolute;
    width: 60%;
    left: 0 !important;
    display: flex;
    flex-wrap:wrap
}

to:

nav .main-nav .mega-menu > ul {
    position: absolute;
    width: 100%;
    left: 0 !important;
    display: flex;
    flex-wrap:wrap
}

2. Add this CSS inside your @media query:

.main-navigation .main-nav>ul {
    position: relative;
}

Thank you, David. But the sub-menu is too big right now. I just want it small like 60% version.
Could you help me?
Thank you.

Adjust the width: 100%; to suit. I increased it from 60% as the other changes made this size too small :)

Thank you so much, David :)

You're welcome

This archived topic is closed to new replies.