• Is it possible to set a max height for a featured image, so that if an image is put that is larger than that height, it will automatically be cropped to it?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is it possible to set a max height for a featured image, so that if an image is put that is larger than that height, it will automatically be cropped to it?

    Hi,

    To clarify: Is this for the blog post list? If so, you can try this CSS:

    .post-image img {
        max-height: 130px;
        width: auto !important;
    }

    This adjusts the size of the featured <img> tag so the layout doesn’t have to crop the image.

    Thread Starter awesomeblogger

    (@awesomeblogger)

    That’s perfect, thank you!

    Solved!! ??

    No problem. Glad it works for you. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting max height (and width) for post featured images?’ is closed to new replies.