Topic: sidenav under navbar

michelle_126 priority asked 1 year ago


  1. any idea how to make sidenav under navbar (as Expected behavior) ?
  2. any idea what class to apply to create gap between sidenav and navbar.


  • Expected behavior enter image description here

  • Actual behavior enter image description here

Mateusz Lazaru staff answered 1 year ago


To place sidenav under navbar you should override their z-index and add extra margin-top for the sidenav to make all the content of sidenav visible.

To create space I've used m-5 class. Check out our docs to find more abour spacing.

Snippet with the solution:

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 5.0.0
  • Device: Desktop
  • Browser: Google Chrome, Microsoft Edge
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No