css - position:sticky is not working - Stack Overflow
It works fine if you move the navbar outside the header. See below. For the reason, according to MDN:. The element is positioned according to the normal flow of the document, and then offset relative to its flow root and containing block based on the values of top, right, bottom, and left.. For the containing block:. The containing block is the ancestor to which the element is relatively ...
DA: 81 PA: 14 MOZ Rank: 37