Make page stop scrolling when lightbox is active Puneet Sharma 7 years ago Add overflow: hidden to your body when you show the lightbox and overflow: auto when you hide it.