Skip to content

Unnecessary scrollbar #211

@Julix91

Description

@Julix91

Update: Found issue, it was in the modal.css code, see second post. Why is that html y-overflow rule there?

First off, thanks for making it. Didn't realize how much was possible without js nowadays.
I'm working on a page, with HTML+CSS only, for a class.

However, now I have a scrollbar at the side that's trying hard to stay there, even though based on it's grayness it knows it's not needed.

scrollbar

I eventually found if I comment out the reference to the css modal file it goes away

noscrollbar

And of course reveals the content that was previously hidden by the modal, showing if it was still somehow being rendered it would be overflowing, but as far as I tested setting overflow:hidden various places didn't help either... I'm currently using flex-box for my general layout. I uploaded the code to a repository , if you prefer seeing code that way, or you can go on the page on my server, see it working and inspect it with debugging tools.

Any help is appreciated, but the error may well be somewhere on my part, and I haven't done all I could do to triage the error yet, other than noticing it stopped happening when commenting out css modal. - I'll definitively keep playing with it myself as well... wonder if it's a flexbox interaction.

Greetings,
Julix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions