Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS entire page scrolls down when close button is clicked

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42282
    Anonymous
    Inactive

    I have no idea whats causing this or how i can fix it. If you go on this website [HERE](http://reallycoolstuff.net/JV/ “”) and click on the “Drawings” section, then the first image of batman a pop up comes up. But when you click the “close” button of the pop up the entire page scrolls down just a bit. Its really annoying and i have no idea how to fix this. Any help?

    #122432
    dfogge
    Participant

    where’s the code that’s handling the pop up open/close?

    i suspect throwing a “return false;” somewhere in there would do the trick.

    #122442
    Anonymous
    Inactive

    @dfogge Here is the javascript code that handles the pop-up. any idea were i should put the “return false”? http://codepen.io/Jarolin/pen/rCKgz

    #122454
    rosspenman
    Participant

    How is the close button supposed to appear? Clicking on the images does nothing.

    #122480
    Anonymous
    Inactive

    @rosspenman only the first image works for now, which is the batman one.

    #122484
    Anonymous
    Inactive

    Heres another thing. It works fine and does not scroll down when i open the HTML page from my desktop and not online. The page does not scroll down, but it does when i open it online.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.