- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have already posted a discussion about this issue but no one seems to know whats wrong. So i post it again hoping that someone new can see this post and help me out. I’m having an issue with a JavaScript image pop-up were the website scrolls down automatically when the close button is clicked for the pop-up. I still don’t know what the issue is and i hope someone can help me.
To see the issue visit this [WEBSITE](http://reallycoolstuff.net/JV/ “”) and click on the “Drawings” section. Then click on the first image which is batman. A pop-up would show up. Then click the “Close” button and see how the page scrolls down just a bit.
[HERE](http://codepen.io/Jarolin/pen/rCKgz “”) you can see the source code of the javascript pop up and see whats wrong with it. Thank you.
Either a solution or an alternative method to doing this would be appreciated.
I can’t reproduce this. What browser?
I see the problem. Definitely has to do with the hash in the anchor tag:
If you simply change that to a span, no more problem:
X
You’ll need to update the styles for it, though.
As a side note: you’ll have a lot easier of a time managing the website if you kill those iFrames.
+100 For you sir. Thank you.