position:sticky does not leave parent December 14, 2023 by Tarik Sticky works that way, it will remain sticky relative to its parent. You need to use fixed. Check this codepen