Topic: Sticky-top navbar not working with last version ?
BioK03 pro asked 7 years ago
Marta Wierzbicka staff answered 7 years ago
BioK03 pro commented 7 years ago
Hello Marta, thank you for your help. In fact, I have put the rule overflow-x:hidden; on the body of my page, and this is the cause of this "bug". I removed it and it works ! Good to know now, I apologize for your time, I better remove all my personal scripts and styles next time :) Have a good day !Marta Wierzbicka staff commented 7 years ago
Hi, I'm glad it is working now.ashleyww93 free answered 7 years ago
navbar sticky-top navbar-expand-lg navbar-dark cyan lighten-3
When it should be:
navbar fixed-top navbar-expand-lg navbar-dark cyan lighten-3
I tested this in chrome with Inspect element & live editing.
I hope this helps :)
BioK03 pro commented 7 years ago
Hello Ashleyww93, thank for your help, but I'm talking about sticky-top ( third in this section : https://mdbootstrap.com/components/navbar/#placement ), not fixed-top. The behavior is the same in the example, but I have to use the sticky-top one for my project :) (the sticky-op behavior permits to stick the navbar on top of the page when we scroll a bit, not directly at the initial state of the page) Thank you for your time, Marta and me solved the problem, it was a conflicting CSS rule. Have a good day !FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: Yes