Ecem Gokdogan• 9,380
@ecemgo
Submitted
@waldvoid
@ecemgo
Submitted
@waldvoid
Posted
Hi Ecem,
Great work!
Marked as helpful
@MetalRick84
Submitted
Why is the image-container higher than the image itself?
I could solve this with height: 301px but I want to know why. You can see it when hovering the card-image (gap at the bottom of the image). Or with devtools :)
@waldvoid
Posted
Hi MetalRick,
If you are using a box for an image try using code below to align your image properly in your image container. Otherwise if you leave it like inline element have to exactly fit your image to your box.
card-image-container {
display: flex;
justify-content: center;
align-items: center;
}
Or you may use other methods with the same idea.