Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Make fix (non-moving) dark background

On my website. I have the following page:
enter image description here

When you click on the photo of a car, the background becomes darker (typical front-end idea):
enter image description here
The problem is, it is movable 🙁 See (I scrolled a bit down):
enter image description here

So it’s a huge issue and needs debugging. How to fix that? How to make background unscrollable or maybe whatever idea you come up with. Thanks!

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Hard to guess without any code – but it seems like some kind of lightbox. So try adding

  body { overflow: hidden; }

when the lightbox is open and

  body { overflow: auto;} 

when it is closed.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading