I'm currently working on a code block that resembles the following:
<p class="cont">
<a href="otherpage.php" class="link"><img src="test.jpg" alt="" width="100" height="100"/></a>
</p>
Additionally, I have some CSS styles in place:
.cont {
width:200px;
height:200px;
}
.cont:hover {
background-color:#CCC;
}
My main query revolves around altering the link area size to cover the entire paragraph section, ensuring that the entire area is clickable rather than just the image. Despite attempting to apply width and height properties to the .link class using display:block, I've been unable to achieve the desired result. Is this even feasible?