I have a post where the feature image is oversized. Why is this happening? Is there a way to fix it?
It looks like you’re using Casper, which will fill the available space with the image (via the CSS property object-fit: cover
). This is done to preserve the design of the grid/spacing.
There are a couple of different approaches.
- Use images that can be cropped gracefully. Abstract images and patterns work well.
- Put your focus in the center of the image with more white space around it. (Similar to #1)
- Update the CSS to
.post-card-image {object-fit: contain;}
. This will make the image fit, but may have other side effects.
For your third point, how would I do that? Could I do it on a page-by-page basis?
What do you mean by page-by-page?