Fix · Pages, phones and Arabic
Sticky header or sidebar does not stick
What you may see
- position: sticky does nothing
Most likely cause
Sticky needs a "top" value and no parent with overflow hidden/auto/scroll that cuts it off, and a parent taller than the sticky element.
Check first (about two minutes)
- Does the element have top: 0 (or another top value)?
- Do any parents have overflow set?
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Check the element for top, and its parents up to the body for overflow, height and display settings.
- Fix the one parent that breaks it, or move the sticky element out of that parent.
- Check it on a phone, including under the browser bar.
Do not do this
- Do not add overflow: hidden to body.
- Do not turn it into position: fixed unless you also fix the space it leaves.