CSS Tip: Use position:sticky in Your Lists
Machine-readable: Markdown · JSON API · Site index
Описание видео
A quick CSS tip explaining why you should set the headings in your ordered and unordered (ol & ul) lists to "position: sticky" to improve the usability of your websites.
👨💼 My blog: https://zoranjambor.com
💌 CSS Weekly Newsletter: https://css-weekly.com/
Help support my channel
💖 Watch ad-free videos on Patreon: https://www.patreon.com/cssweekly
🪧 Buy CSS Stickers pack: https://stickers.css-weekly.com
☕️ Buy Me a Coffee: https://buymeacoffee.com/cssweekly
📖 Chapters
00:00 Why you should use position:sticky with your lists
00:14 Demo setup and usability problem with lists
00:49 How to add position: sticky to list headlines
01:47 Why you should add background to sticky headlines
02:07 How to use position:sticky in ul and ol lists
Keep up-to-date with CSS Weekly:
🦋 Bluesky: https://bsky.app/profile/cssweekly.com/
🐦 Twitter: https://twitter.com/@cssweekly
🎶 TikTok: https://tiktok.com/@cssweekly
🎇 Instagram: https://instagram.com/cssweekly
📘 Facebook: https://www.facebook.com/CSSWeekly/
Keep up to date with what I'm up to:
👨💼 Blog: https://zoranjambor.com
💼 LinkedIn: https://www.linkedin.com/in/zoranjambor/
- Zoran Jambor
#css #csstricks