The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Page scrolls on its own after opening a lightbox image., <a> tags and id involved.
Miguel2013
post Jun 7 2020, 05:29 PM
Post #1





Group: Members
Posts: 2
Joined: 7-June 20
Member No.: 27,382



i have a webpage 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="#_" but 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?
page is at 73.20.88.213/drawings.html


This post has been edited by Miguel2013: Jun 7 2020, 05:29 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 8 2020, 12:36 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,879
Joined: 9-August 06
Member No.: 6



Can't reach the page. Times out.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Miguel2013
post Jun 8 2020, 08:05 PM
Post #3





Group: Members
Posts: 2
Joined: 7-June 20
Member No.: 27,382



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


This post has been edited by Miguel2013: Jun 8 2020, 08:06 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 9 2020, 12:12 AM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 18,879
Joined: 9-August 06
Member No.: 6



What browser do you use? I don't see what you describe.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 5th July 2020 - 01:06 AM