I
I
Igor Braduloff2018-09-26 11:31:22
css
Igor Braduloff, 2018-09-26 11:31:22

How to remove the scroll when the screen is reduced, if there is free space on the sides?

Good afternoon! Tell me, when the screen is reduced, a horizontal scroll appears, although there is free space on the left and right.
5bab43c5ea911227796026.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aloky, 2018-09-26
@aloky

body {
 overflow-y: hidden;
}

But it seems to me that a scroll appears because of the table because it does not fit into the block

W
Web__Nikita03, 2018-09-26
@Web__Nikita03

It is necessary to write overfow-y: hidden;
I advise you to look at this htmlbook.ru/css/overflow

P
Pavlo Ponomarenko, 2018-09-27
@TheShock

overfow-y: hidden is just to hide symptoms. It is necessary to see through the developer console which element stretches the page and figure out why it takes up more space than necessary

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question