here’s my code :
https://codepen.io/Abdou_dz_23/pen/MMNVNQ
the problem :
<div>
<a>
<img/>
<p> </p>
</a>
</div>
i have basically the same structure in the codepen , and my image tends to stick outside my div , my <p> element as well , i want the image to resise to take only 75% of the div’s height
and the rest 25% is for the <p> element .
How can i achieve this ? and if possible explain why my code did not work as i intended ?