• Resolved lsv-grenzland

    (@lsv-grenzland)


    Hi,

    great plug-in – but I’m having some trouble with it on my title page (which is a full-width. For some reason images are being cropped. Is there a way to not crop the image? It seems to work fine on standard (sidebar) pages. I suspect some magic css may help – but what? 🙂

    Thanks for any help

    regards
    Torsten

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lsv-grenzland

    (@lsv-grenzland)

    Interestingly, the cropping gets smaller (disappears altogether) when resizing the browser window to smaller width.

    Thread Starter lsv-grenzland

    (@lsv-grenzland)

    Ok, found one solution working for modern browsers:

    .post-image-bg {
    width: 100% !important;
    height: 40vw !important;
    }

    where 40vw for modern browsers means 40% of the viewport width. Obviously you can vary 40 to meet your needs

    Hello @lsv-grenzland,

    We are writing CSS like this way, any size image will fit in the outer box
    this method call ‘object-fit: cover’ in this method image will fit in the box and overflow image part will hide in this method any size image look good without pressing or stretching.

    If we give image size width:100% and height:100% forcefully to fit it then image will press if the image is bigger then box and image will stretch if the image size is smaller then box

    If you want a perfect image slider then please upload outer box size image (width:1180 and height:350).

    Thanks

    Hello,

    If you want the same image as you have uploaded, please use the below CSS under custom css section.

    .recent-post-slider .post-image-bg img
    {
    height:auto !important;
    object-fit: unset !important;
    }
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Image cropped’ is closed to new replies.