How it works

You apply position: sticky; to an element along with a top, left, right, or bottom threshold and it will “stick” in that position when the threshold is passed, as long as there is room …

Podden och tillhörande omslagsbild på den här sidan tillhör CSS-Tricks. Innehållet i podden är skapat av CSS-Tricks och inte av, eller tillsammans med, Poddtoppen.