Answer the question
In order to leave comments, you need to log in
How to remove horizontal scrollbar in css grid?
I set the template-areas to 100vh and 100vw in general, and everything seems to be fine, but as soon as I fill the content block with random lorem words so that it has to stretch (set the auto property), then horizontal page scrolling appears along with vertical scrolling. How to fix this mess?
Here is the code, it clearly shows that there is a horizontal scrollbar: https://jsfiddle.net/9wxtofbd/
I
guess about the reason: a vertical scrollbar appeared and the visual width of the page decreased exactly by the size of the scrollbar. I searched the Internet and tried to use max-width (did not help), I tried overflow: hidden, but this is a crutch in my opinion, leading to other unnecessary consequences.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question