What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Page scrolls on its own after opening a lightbox image. <a> tag and id involved.

Miguel2013

New member
I have a webpage on my site drawings.html with a lightbox using <a> tag to open and close the image. I click on one image that has an <a> with an href="img7" and it opens the same image just larger with an href="#_" so when I click anywhere on the screen the picture dissapears cause of the href="#_" tho there's a bug.

I can keep clicking on every image in the page to open and close them fine, but if i happen to reload the page that now ends with drawings.html#_ i click anywhere on the page the page scrolls a bit, how can I fix this?


this is the website I'm on now (same code)
http://psychgirls.epizy.com/drawings.html
 
Back
Top