I\'d like an elegant way to \"collect\" multi-level headers at the top of the window as the user scrolls, and position:sticky gets me 90% of the way there. The
You need to use the 'z-index' tag in order to do so.
First header should have lower z-index value than any other header.
The last header should have the highest z-index value.
z-index tag is used to put the elements below or above any other elements.