Topic: Sticky Javascript Code

sherylg343 free asked 3 years ago


Expected behavior Side nav bar stick while main content scrolls

Actual behavior Scrolling with other content

Resources (screenshots, code snippets etc.) Question: I deleted some files to improve site performance and I'm concerned I deleted the jquery file with the sticky code. Can you tell me which file it is in so I can make sure I have it? $(function () { $(".sticky").sticky({ topSpacing: 128, stopper: "#footer" }); }); and sticky is a class in ul of side navigation list and footer is id of footer element. Thanks for your help! Sheryl


Krzysztof Wilk staff answered 3 years ago


Hi!

To make this code working you have to have these file attached:

jquery.min.js, bootstrap.min.js, and mdb.min.js.

Best regards



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.2
  • Device: MacBook Pro
  • Browser: Chrome
  • OS: OS 10.12.6
  • Provided sample code: No
  • Provided link: No