I need to create a padding-top effect for my div when the link to the anchor is clicked:
<a href="#myAnchor">Proceed to my anchor</a>
...
<div id="myAnchor"> ... </div>
The challenge lies in wanting to add the padding only when the link directs me to the anchor. I do not wish to include padding-top in the HTML, but rather ensure that my div does not sit at the top of the page. A margin or padding top is necessary.
Appreciate any assistance. Thank you.