A
A
Anton2020-05-14 13:45:39
css
Anton, 2020-05-14 13:45:39

Pop-up window on the right and scrolled the browser, how to hide the scroll?

Hello.
The question is, there is a pop-up window on the right in which there is a scroll, it turns out that when the window pops up there is the main browser on the right, the site scrolls, and it also scrolls in the pop-up window, there is a little confusion, as it were, can the browser scroll be disabled when the window pops up on the right.

5ebd214dc4c00810832625.jpeg

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Lovtsevich, 2020-05-14
Websaytovsky @ws17

In general, not "is it possible to disable the scrolling of the browser when a window pops up on the right", you need it! Put `overflow: hidden` on the body when you open modals, the content below them should not scroll in the same way that the focus should not go beyond the open modal.

D
Denioo, 2020-05-14
@Denioo

Hang on a modal window
overflow: hidden

A
Andrew Kolomiets, 2020-05-14
@Coolam

I think it's time to add something unusual to our sites, friends. I suggest removing the scrollbar altogether.
::-webkit-scrollbar{width: 0}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question