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?
Solved
SP Page Builder
Display of images propotion / aspect ratio
Accepted answer
Marked as the solution
Mehtaz Afsana Borsha Staff
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.
2 more replies
Mehtaz Afsana Borsha Staff
Hi
Is this solved now? If yes, you can then close this post by accepting the answer.
Mehtaz Afsana Borsha Staff
Thanks for accepting the answer.
Log in to reply.