When you use sticky positioning, the element needs to be stuck ārelativeā to another element. That would be the first parent element with relative positioning.
I guess your body elementās positioning isnāt set to relative, meaning the nav bar doesnāt know where to āstickā