On my website, I have a div that functions like a pop-up when triggered by an icon click. This pop-up allows scrolling within itself while disabling scrolling on the rest of the website. However, I'm facing an issue with positioning a fixed image for the "close" button only within this pop-up div. The challenge is to make sure the close image is hidden until the pop-up is displayed and disappears when it's closed. Currently, I've used "position:absolute" which works for showing the close button only within the pop-up but requires users to scroll back up to see it again after closing the pop-up.