I am new at coding and I have been trying to look for a solution for this but I haven't found anything so far. My problem is the text shows up outside of the div. Like this.
I have only been able to have the text inside if I don't use border-radius but I would like to keep it.
This is the code:
div.polaroid {
text-align: center;
padding: 50px 50px;
}
div.prod-img {
border-radius: 35%;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
text-align: center;
padding: 0px 0px 70px 0;
}
<div class="col-lg-4 polaroid">
<a href=""> <img class="prod-img" src="" alt="" />
</a>
<div>
<p> Name 1 </p>
</div>
</div>