Having trouble with Blogger once again as I try to style the homepage. I am aiming to feature snippets and titles in tiles with a fixed height of 200px but a dynamic width for responsive design.
My goal is to display the first image and a "read more" button on hover. Due to restrictions, I cannot use the background URL function, so I need to find a solution using the image tag.
Although my fallback background solution works well with background-size contain, I am striving to achieve a similar look to background-size cover with the preview image.
I have attempted to use the CSS code snippet:
img{
height: 100%
min-width: 100%;
}
However, this approach did not yield the desired result. The entire area is covered, but the image is stretched and does not maintain the correct aspect ratio.
I am hopeful that someone can provide a solution to make this work. Ideally, a CSS-only solution would be best, but I am open to using JavaScript if necessary.
For reference, here is a link to my test blog: