sidenav under navbar


Topic: sidenav under navbar

michelle_126 pro premium priority asked 2 years ago

Hi,

  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.

Thanks

  • Expected behavior enter image description here

  • Actual behavior enter image description here


mlazaru staff answered 2 years ago

Hi,

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: https://mdbootstrap.com/snippets/standard/mlazaru/4452863


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • 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