Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
SeanAnderson
1y ago
0 comments
Share
There's `position: sticky` now for headers. It has better ergonomics than fixed and it's nice than it's supported by all modern browsers.
https://developer.mozilla.org/en-US/docs/Web/CSS/position
undefined | Better HN
0 comments
default
newest
oldest
nicbou
1y ago
It's a huge improvement for sticky sidebars that are only scroll within their parent element. For example, it's what I use on this page:
https://allaboutberlin.com/guides/public-transit
dredmorbius
1y ago
Thanks!
j
/
k
navigate · click thread line to collapse