Images are not displayed in full width in the phone view - Forum | JoomShaper
Solved SP Page Builder

Images are not displayed in full width in the phone view

Asked by Gerhard 3 years ago Last activity 3 years ago

Hello,

I'm using Helix 3 and SP pagebuilder 4.0.10.

On my website images are not displayed in full width in the phone view. I increased the column width in the phone view to 100%. However, images are cut off on the right side in this view and are not displayed in landscape format, but in portrait format.

What do I have to set so that the pictures are fully displayed in the phone view?

Thanks

Accepted answer

Marked as the solution
Mehtaz Afsana Borsha Staff

You are always welcome. You can now close this post by accepting the answer.

12 more replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us. Could you please give me your site URL and also screenshot of your issue?

-Regards.

Mehtaz Afsana Borsha Staff

Could you please give me a screenshot of your issue?

Mehtaz Afsana Borsha Staff

Use this custom CSS

@media (max-width: 991.98px){
#sppb-addon-8igtaHoxOiPYDie6Nuo0a img {
    width: 100% !important;
    max-width: 100% !important;
}
}

Path towards custom CSS: Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

Gerhard Asked this

I added the CSS code in the template. Unfortunately the result is not what it should be. Some of the pictures now look "squeezed" in the phone view, i.e. not proportionally reduced. For other images it has no effect at all.

Mehtaz Afsana Borsha Staff

Ok got it. Remove my previous CSS and Use this custom CSS

@media (max-width: 991.98px){
#sppb-addon-1669568179001 img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}
}
Gerhard Asked this

After I apply the new CSS something strange happens:

Phone-View: https://prnt.sc/e_csAbCmbjMm
Only the image in the center with the elephant is displayed at the correct size, the others remain cropped.

Tablet-View: https://prnt.sc/TeyuF6cif7tq
The elephant image here is too small, while the other images are the correct size.

Log in to reply.