Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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>
                        </div>
                    </li>
                </ul>
</div>



I need to create submenu to 'Menu4'.

What I have tried:

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

1 solution

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900