Just starting out with programming and I'm running into a problem where the anchor is clickable outside of my div.
The div includes a sliding tab from the right displaying a randomly generated film, and ideally the entire tab should be clickable to direct users to the film's IMDb page. I have researched and attempted the solution of setting the div to "display: table-caption", which does resolve the issue, but it brings about various other challenges such as needing to add a left margin (otherwise the div sticks to the far left), resulting in alignment issues on different screens or when zoomed in.
Is there a more refined approach to achieving this? I struggled with positioning while using "table-caption" for the div display, with no success using any other methods.
Here's the HTML for the div:
<a id="filmAnchor" target="_blank">
<div id="replyDiv" class="blood">
<div id="newreplyDiv">
</div>
</div>
</a>
Appreciate any assistance you can provide! You can access the project on CodePen through this link: