Skip to content

Conversation

@lsf37
Copy link
Member

@lsf37 lsf37 commented Jan 11, 2026

Firefox >= 143 shows double scroll bars -- one for the overall html element and one for the header/nav and one for the body div.

Use overflow-hidden to force the html element to not show a scroll bar. The body div should still scroll separately.

Firefox >= 143 shows double scroll bars -- one for the overall
html element and one for the header/nav and one for the body div.

Use overflow-hidden to force the html element to not show a scroll bar.
The body div should still scroll separately.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
@github-actions
Copy link

Preview your changes here

@Indanz
Copy link
Contributor

Indanz commented Jan 12, 2026

Have you tested this on mobile? I suspect it breaks scrolling there. Edit: Never mind, it probably works because of the overflow-y-auto.

I think a cleaned up version of my solution is slightly better, as it reduces the difference between the desktop and mobile versions and has less CSS over all.

Copy link
Contributor

@Indanz Indanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smallest change, so let's go for this one.

@lsf37 lsf37 merged commit c852eb3 into master Jan 12, 2026
11 checks passed
@lsf37 lsf37 deleted the double-scrollbar-fix branch January 12, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

you can scroll the root <html> element if you scroll on the header or footer elements

2 participants