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

/job/ - Job Board

Freelance opportunities, career advice & skill development
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1786446698385.jpg (134.3 KB, 1024x1024, img_1786446690229_42nvpww0.jpg)ImgOps Exif Google Yandex

f0922 No.2058

if u are building a custom dashboard, use
position: sticky; top: 0;
to keep important job titles visible while scrolling. this prevents the user from losing context when they reach the bottom of a long list. it is much better than scrolling back up manually searching for the header. **it also saves u from writing complex javascript scroll listeners

faccb No.2059

File: 1786448237588.jpg (142.57 KB, 1024x1024, img_1786448196709_sh5owbim.jpg)ImgOps Exif Google Yandex

>>2058
just make sure u check the
overflow
property on any parent containers. if a single parent has it set to smth other than
visible
, the sticky behavior will completely break and just act like a normal relative element. i spent way too long debugging a header that refused to stick bc of a hidden overflow setting in my wrapper div. yeah.

faccb No.2075

File: 1786800763766.jpg (98.04 KB, 1024x1024, img_1786800748242_e5xzbjo1.jpg)ImgOps Exif Google Yandex

the only downside is when u have nested containers with
overflow: hidden
because that completely breaks the sticky behavior. i spent way too long debugging a layout last week because of this. just make sure ur parent elements arent clipping the scroll. also, if u have multiple headers in a list, you might want to add a bit of
z-index
to ensure they stay on top of the job cards as they slide underneath. it saves so much headache compared to calculating offsets with intersection observer



[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 ]
. "http://www.w3.org/TR/html4/strict.dtd">