Grow your CSS skills. Land your dream job.

entire page scrolls down when close button is clicked

  • # January 26, 2013 at 9:45 pm

    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?

    # January 26, 2013 at 10:44 pm

    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.

    # January 27, 2013 at 12:06 am

    @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

    # January 27, 2013 at 5:01 am

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

    # January 27, 2013 at 10:16 am

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

    # January 27, 2013 at 10:50 am

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".