I have a 3 rows header and I need the middle row to be sticky, I tried using position: sticky
but since it's relative to the element's parent I'm unable to achieve the result that I want.
Here's a fiddle: https://jsfiddle.net/8sczt7u1/2/
I was going for a CSS only solution but I'm well aware that this is a very particular case so I'm open to javascript as well.