Skip to main content
CSS is fun and cool and I like it.
Article

Sticky as a Local Fixed?

You know how position: relative creates a new context for absolute positioning within an element? Well, position: sticky is a locally scoped version of position: fixed. Let's take a look at how that works using a modal with a sticky close button as an example.
icon-link icon-logo-star icon-search icon-star