I recently started working on a website built with HTML/CSS and encountered an issue with links highlighting when hovered over. The problem arises from the main image on the homepage containing an embedded link, causing the area under it to also highlight upon hovering.
Do you have any suggestions on how I can modify the code to only highlight links within the <p> ... </p>
elements of my markup?
This is the current code snippet in use:
p a:hover {< p > < a href="IMAGE LINK HERE"> < /a > Biography < /p >
background-color: rgb(255, 255, 255);
}