I'm currently working on creating responsive cards. The cards are looking good and properly spaced out. However, I am facing an issue with the image placement on the front of the cards. I want the image to be at the top with a title in the middle. The title is positioned correctly, but the image on the right side is not aligned as expected. Below is the CSS code used for the image (the image is placed within an img tag with a class of "image" in the HTML page):
div .image {
padding: 5%;
height: 45%;
width: 100%;
}
For some reason, the right side of the image seems to be ignoring the padding and extending beyond the boundaries of the parent card div. Can anyone provide any insights into why this might be happening?