Topic: Anchor for scrolling to section on page

Odermatt premium asked 2 years ago

How can anchors be used in MDB5 for scrolling to the right position of a section of the page?

Expected behavior Scrolling to an anchor on the page

Actual behavior It's not stopping exactley on the expected position. Content is covered bei top navigation.

Resources (screenshots, code snippets etc.)

Dawid Wajszczuk staff answered 2 years ago


You are probably referring to our smooth scroll. To get rid of content being covered by top navigation just set offset to scroll. More information about this can be found here under Custom offset section.

Keep coding,

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: Desktop, Mobile
  • Browser: all
  • OS: all
  • Provided sample code: No
  • Provided link: No