Topic: fixed Navbar overlaps Section on smooth Scroll
I created a webpage with a fixed Navbar with Links to the Section Ids, so a user can click to get a smooth scroll to the desired content.
The Problem is that after the smooth scroll the Navbar overlapses the Section Body.
Can someone please Help :)
Code:https://mdbootstrap.com/snippets/standard/neoxp/4139708#!
                                                    
                                                    kpienkowska
                                             staff                                             answered 3 years ago                                        
You need to add data-mdb-offset attribute to your link:
https://mdbootstrap.com/docs/standard/methods/smooth-scroll/#docsTabsOverview
Adjusted snippet: https://mdbootstrap.com/snippets/standard/kpienkowska/4141141
                                                    
                                                    NeoXP
                                                                                        answered 3 years ago                                        
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
 - Premium support: No
 - Technology: MDB Standard
 - MDB Version: MDB5 4.2.0
 - Device: PC
 - Browser: Chrome
 - OS: Windows
 - Provided sample code: No
 - Provided link: Yes