[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/case/ - Case Studies

Success stories, client work & project breakdowns
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1794639707467.jpg (88.97 KB, 1100x675, img_1794639700105_i9ps1fx1.jpg)ImgOps Exif Google Yandex

ee510 No.2484

been fighting with that jumpy behavior when clicking anchor links all morning. if you've got a static sticky nav bar, it just covers the top of your content sections every time. adding
scroll-margin-top
to your section ids fixes it without messing with padding or margins on the actual elements.

section {scroll-margin-top: 80px;}


anyone else still using javascript scroll offsets for this?


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]