Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 07h 56m 20s
Claim 50% off
Staff replied Templates

Stretched images on mobile (Magnin template)

Asked by How 4 years ago Last activity 4 years ago

3 replies

Rashida Rahman Staff
4 years ago · edited

Hi there!

Thanks for your query.

I have checked our demo, the image getting 100% width and height. https://prnt.sc/26oqpmm

You can use the following code in your custom CSS:

#sp-simpleportfolio .sp-simpleportfolio-description .sppb-carousel-extended-item img {
    height: auto !important;
}

Hope this will solve the issue for you!

Note: 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.

Best Regards

Rashida Rahman Staff

Hi,

You are welcome!

Without shrinking this is not possible to keep the view right that way I think.

However, you can try the following code instead:

@media (max-width: 767px){
#sp-simpleportfolio .sp-simpleportfolio-description .sppb-carousel-extended-item img {
   object-fit: contain;
}
}

Note: 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.

Best Regards

Log in to reply.