2
I set a grid and inside I played an image, that image needs to have a height of 150px, so I set it to height to it, the problem is due to the fact that the image is exceeding the grid, I do not want to force a width of 100% with a height of 150px because the image will be blurred, How do I give a Hidden in the remaining width of the image? I tried to overflow Hidden but it is no use, below this image has an H5 that by the way picks up the right width, only the image even if it is with problems, see print and part of the code:
Code:
<div class="col-md-2">
<img src="images/produtos/rasp.webp" height="150">
<h5><a href="#" class="linkProduto">Raspberry Pi Zero V 1.3 Com Conector P/câmera Pronta Entrega</a></h5>
</div>
It would not be better to put the image in "background-image" and in CSS to put a "background-size: cover" so the image would not lose the proportion! Worth a try.
– Marcus Rodrigues
the
col-md
is insidediv class="row"
?– Guilherme Nascimento