Is it possible to remove scroll of body page when a modal window is opened from css?
For example my body page has a height:200% so if I want to go on the bottom of page I must use scroll (overflow-y:auto). Now if I will open a modal window the scroll of body page remain active and I want it be disabled when a modal window is opened.
Thank you.
position:fixedfor the modal window it will remain in place on the screen even if the user scrolls up or down.