Topic: Navbar - fixed height
gabbi
free
asked 9 years ago
dazer
pro
answered 9 years ago
$(window).off('scroll')
This prevents adding the CSS class comlpletely and may push the client performance a bit. Not sure about any side-effects though.
Michal Szymanski
staff
answered 9 years ago
<nav class="navbar">
....
</nav>
And then CSS
.navbar {
position: fixed;
width: 100%;
}
dazer
pro
answered 9 years ago
.top-nav-collapse {
padding: 10px 0;
}
gabbi
free
answered 9 years ago
Michal Szymanski
staff
answered 9 years ago
.navbar {
position: fixed;
width: 100%;
}
gabbi
free
answered 9 years ago
Michal Szymanski
staff
answered 9 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- ForumUser: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No