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

/wd/ - Web Design

Professional design discussions, frameworks & UI/UX
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793270475131.jpg (153 KB, 1024x1024, img_1793270468586_f5zf9cms.jpg)ImgOps Exif Google Yandex

60b22 No.2413

i've been struggling with that annoying jump where the header covers up the top of the section when you click an anchor link, so i started using this on my main container to keep everything visible. it's such a simple fix for long landing pages that use smooth scrolling.
html {scroll-padding-top: 80px;scroll-behavior: smooth;}

does anyone else find yourself manually adding offset padding to every single section instead of just using this globally?


[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 ]