Click here to Skip to main content
14,662,206 members
Rate this:
Please Sign up or sign in to vote.
See more:
Below is my nav bar menu code.

 <div class="navbar-collapse collapse" id="navbarCustom">
                <ul class="navbar-nav mr-auto">
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Menu1</a>
                        <div class="dropdown-menu border-0" aria-labelledby="navbarDropdown1">
                            <a class="dropdown-item" href="#">Menu1</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">Menu2</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">Menu3</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">Menu4</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">Menu5</a>

I need to create submenu to 'Menu4'.

What I have tried:

I was not able to find submenu class. Am using Bootstrap v4.5
Updated 1-Sep-20 22:38pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Lots of suggestions in this StackOverflow thread:
html - Bootstrap 4: Multilevel Dropdown Inside Navigation - Stack Overflow[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100