That’s the way positioning works
relative means relative to itself…if don’t add any position values the element won’t move.
It’s not entirely clear what you are trying to achieve but I suspect that
position:absolute for the anchor link would the right method if you are trying to place the link over the image.
Perhaps you could make a Codepen.io demo?