[Resolved] Background photos are cut off if you change width

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Background photos are cut off if you change width

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31981
    Sergio
    Participant

    Hello

    It seems that the background images do not keep the proportion if you make the screen smaller. The image instead of adapting to the width of the screen, it keeps getting cropped.

    It can be seen in this URL:

    https://ainhoaibarreche.com/proyectos/

    Instead, it would be optimal if they were adapting to the screen as here:

    https://galansobrini.es/proyectos/

    Is this possible?

    Thanks in advance.

    #32008
    elvin
    Moderator

    Hi there,

    WPSP’s tries to fit in what it can on the post image container (which has a min-height) for this particular card.

    You can try adding this CSS to override that.

    .wpsp-card .wp-show-posts-image img {
        object-fit: contain !important;
        min-height: unset !important;
        height: auto !important;
    }
    
    .wpsp-card .wp-show-posts-image {
        min-height: unset !important;
        height: auto !important;
    }
    #32018
    Sergio
    Participant

    Much better!
    thank you very much Elvin.

    #32063
    elvin
    Moderator

    No problem. 😀

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.