NadineS Posted September 18, 2022 Share Posted September 18, 2022 Site URL: https://joeysilverman.squarespace.com/ https://joeysilverman.squarespace.com/ PW: Fiddler Anyone know how to add padding/margin to the smooth scrolling effect so the top of the section isn't cut off?... ///--- SMOOTH SCROLL SECTIONS html { scroll-behavior: smooth; scroll-margin-top: 100px; } Doesn't seem to be working... :S Link to comment
tuanphan Posted September 20, 2022 Share Posted September 20, 2022 I guess you need to disable fixed header on this page only (with CSS) or add some spacer on top of section What do you think? NadineS 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
joshuahext Posted September 15, 2023 Share Posted September 15, 2023 Hey, so Will Myers has a great tutorial for doing anchor links with offsets without the need for scroll-margins (which don't see to work on Squarespace since the latest update) https://www.will-myers.com/articles/anchor-link-offset-trick-in-squarespace Hope that helps! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment