Shopify themes, liquid, logos, and UX
i'm trying to fit my slideshow pictures to mobile
as they are currently cut on mobile >
i put this code >
@media (max-width: 768px) {
.shopify-section.section,
.shopify-section.section > div {
min-height: 0 !important; /* Remove forced height */
height: auto !important; /* Allow height to adapt to content */
padding: 0 !important; /* Eliminate padding */
margin: 0 !important; /* Eliminate margins */
overflow: hidden !important; /* Prevent hidden elements from spilling */
}
.shopify-section.section img {
width: 100% !important; /* Ensure the image spans the full container width */
height: auto !important; /* Maintain aspect ratio */
object-fit: cover !important; /* Prevent distortion */
display: block; /* Eliminate extra spacing from inline elements */
}
}
into the class "base.css"
and the picture is fine
but then there is a lot of dead space below the picture >
the best would obviously be the put another picture for mobile
but dawn doesn't allow that without major css changes
so just to make the current pictures now being cut on mobile would work
but is there a way to remove that dead space there ?
my website is;
https://vidaswatches.com/
thanks friend
Hi @shayvidas
I hope you are well. You can follow our instructions below:
Step 1: Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
Step 2: From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
Step 3: Copy the code below and paste it there
Here is the code for Step 3:
@media screen and (max-width: 750px){
.slideshow__media.banner__media.media > img {
width: 100% !important;
height: auto !important;
}
.slideshow__media.banner__media.media {height: 140px !important;}
.slideshow__text-wrapper.banner__content {
min-height: 140px !important;
}
}
Please let me know if it works. Thank you!
Best,
Daisy - Avada Support Team.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025