P
P
Psoriaz2021-07-02 23:05:58
Bootstrap
Psoriaz, 2021-07-02 23:05:58

How to remove content shift when scrollbar appears?

There are slide boxes that increase the height of the page when they slide out, so a scroll bar appears and this pushes the content to the left... I tried to fix it with CSS: But it doesn't work at all on my site. Perhaps a problem with bootstrap? Here is the codepen: https://codepen.io/pen/?template=abWOQdX
html {margin-right: calc( -1 * (100vw - 100%));}


Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question