I am facing an issue with a div section that contains multiple <a href=""> tags. When I shrink the div section on the page, the contents move when a user tabs into it. Is there a way to lock the div section so that its contents do not move?
For example, consider the following code:
<div>
<h4>Heading</hv>
<a href = "1">Link 1</a>
<a href = "2">Link 2</a>
<a href = "3">Link 3</a>
</div>
When I shrink the div section to show only the h4 element {overflow:hidden}, the user can still tab to the anchor elements and they scroll into view in the div "window". This is not desired as I want to maintain
<div><h4>heading</h4></div>
without scrolling. Essentially, I need to prevent the contents of the div section from moving when a selected element is displayed. I understand that pressing return will follow the selected link, but my concern is only about what is displayed.
You can see the problem I'm facing by visiting this link, clicking on the training section on the left, and then back-tabbing (shift tab). The article section above changes unexpectedly.
Thank you for your help.