Topic: Navbar + Container + Fixed Top
Luciano Oliveira
pro premium asked 8 months ago
when I use the Code
<div class = "container">
<nav class = "navbar navbar-expand-lg navbar-dark indigo">
<a class="navbar-brand" href="#"> Navbar </a>
</nav>
</div>
when I add fixed-top
<div class = "container">
<nav class = "navbar fixed-top navbar-expand-lg navbar-dark indigo">
<a class="navbar-brand" href="#"> Navbar </a>
</nav>
</div>

Fixed-top disables the container class.
Open
- User: Pro
- Premium support: No
- Technology: jQuery
- MDB Version: 4.19.1
- Device: Notebook
- Browser: Google
- OS: windows 10
- Provided sample code: No
- Provided link: No
Tomek Makowski staff commented 8 months ago
Hi
try to use sticky property instead
https://mdbootstrap.com/snippets/jquery/tomasz-makowski/2325566#css-tab-view
regards