Can't make image and card have equal height
this is what my current design looks like and i want to the rights images to be equal in height with themself and in equal height with the cards on the left i am currently using bootstraps grid system and mainly its own classes but i did try it using CSS grid but wasn't able to have equal height, so what will be the solution here?
13 Replies
one way would be give the
a
and img
for sleapwaer bags and health a class of h-100
https://codepen.io/MannixMD/pen/NWQxRgW
or remove d-block
from the a
there instead of adding h-100
https://codepen.io/MannixMD/pen/RwXrGLEwith no
d-block
with
d-block
& h-100
with no
d-block
and with h-100
doesn't seem to work
put your code in codepen
ok nvm, the
h-100
is working but the image is getting stretched is there any way to fix that?talking about the bags one
object-fit: cover;
alright that fixes the right images issues but what if i want the images to have height aligned height with the left card
also when i go to small screen or zoom-in in my current screen the images get UN-aligned again