Position: sticky not working? Check these four things, in this order
position: sticky not working? It's almost never the property. Four causes, a console snippet that finds the guilty ancestor, and fixes that survive the next refactor.
position: sticky not working? It's almost never the property. Four causes, a console snippet that finds the guilty ancestor, and fixes that survive the next refactor.
position: sticky not working? It's one of five causes: no top value, a clipping ancestor, a short parent, a stretched item, or html + body overflow. Fix each.
Position: sticky not working? Six causes ranked by how often they bite: a missing top, an overflow ancestor, flex stretch, a short parent, and one console snippet that finds it.