Within the header of my webpage, there is an image div that has been styled with overflow:hidden
.
Inside the content section, I have a bookmark anchor tag:
<a name="arghargh"></a>
Located at the top of the content area, there is a link that directs to the bookmark:
<a href="#arghargh">go to the bookmark</a>
Upon clicking the link, the content vanishes, leaving only the elements outside of the content division.
After coming across this article which details the same issue, I decided to remove the overflow:hidden
style. This solved the problem, but unfortunately, I actually need the overflow:hidden
for proper page layout.
Please help!
Update
It seems that with overflow:hidden
enabled, the bookmark is causing the div to scroll internally, shifting all content up until the point where the bookmark sits at the top of the visible screen. This is not ideal.