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.
A child set to height: 100% collapses to its content size instead of filling the parent. Here's the containing-block rule causing it, the two things everyone tries first, and four real fixes.
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.