Display Of Images Propotion / Aspect Ratio - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Display Of Images Propotion / Aspect Ratio

SH

Susanne Hoischen-Taubner

SP Page Builder 7 months ago

I have a problem with the display of images: they are not scaled down proportionally, but compressed. Is there a way to set a proportional fit of the images? Or do I have to upload a customised image for each display?

0
3 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 7 months ago #187135

Hi

Thanks for contacting us. Ensure the images you upload have the correct dimensions for the space they are being displayed in.

If the container for the image is smaller than the image itself, the image may appear compressed. Resize the image to match the container dimensions before uploading. You can also try custom CSS on that. Use this CSS in your custom.css file

.sppb-image-container img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensures the image scales proportionally */
}

And you can also upload a customised image for each display. It will also working.

-Regards.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 6 months ago #190538

Hi

Is this solved now? If yes, you can then close this post by accepting the answer.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 6 months ago #190544

Thanks for accepting the answer.

0