Jump to content

Different Banner Image on Mobile

Go to solution Solved by christyprice,

Recommended Posts

On 9/27/2021 at 2:46 AM, CoralDerfurt said:

Hey, 

I'm having the same issue, please could someone help me with a code for this gallery section on my site. It looks perfect on desktop but zooms in on mobile, I just want it to not zoom in. 

Thanks,

Coral

Screenshot 2021-09-26 at 20.44.15.png

IMG_4089.PNG

Hi,

Can you share site url? We can help easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 9/29/2021 at 2:34 AM, CoralDerfurt said:

www.scrunchme.co.uk site password is hello

Add to Design > Custom CSS

/* Resize mobile banner */
@media screen and (max-width:767px) {
[data-section-id="6151fe5467f3dc22b6e908f7"] {
    min-height: unset !important;
    height: 35vh;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 years later...
On 10/2/2021 at 6:10 PM, tuanphan said:

Add to Design > Custom CSS

/* Resize mobile banner */
@media screen and (max-width:767px) {
[data-section-id="6151fe5467f3dc22b6e908f7"] {
    min-height: unset !important;
    height: 35vh;
}
}

 

HI @tuanphan, thank you for this code. I've used it on my home page but still cant make the image to be widht 100% on mobile, Can you please help?

URL: www.gastonduflos.com . It's thefirst banner image

Link to comment
1 hour ago, GastonDuflos said:

HI @tuanphan, thank you for this code. I've used it on my home page but still cant make the image to be widht 100% on mobile, Can you please help?

URL: www.gastonduflos.com . It's thefirst banner image

I see you used different code, not my code

Remove your code & use this code

@media only screen and (max-width: 767px) {
    [data-section-id="657f778af1a704689bdfd139"] {
        min-height: unset !important;
        height: 30vh !important;
    }
}

image.png.cdc20196084d1b9da3f7e0bfd6bdad7a.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
2 hours ago, tuanphan said:

I see you used different code, not my code

Remove your code & use this code

@media only screen and (max-width: 767px) {
    [data-section-id="657f778af1a704689bdfd139"] {
        min-height: unset !important;
        height: 30vh !important;
    }
}

image.png.cdc20196084d1b9da3f7e0bfd6bdad7a.png

THANKS @tuanphan. It worked but only when using INSET. If I use FULL WIDHT option, the images is croped. Any idea why this happen?

Link to comment
On 12/18/2023 at 10:58 AM, GastonDuflos said:

also @tuanphan I just found out that it looks ok on the mobile preview of squarespace but it doesnt look good on the actual mobile:

URL: www.gastonduflos.com

 

 

IMG_1659.jpg

You can set margin top code. I think header overlap section abit

@media only screen and (max-width: 767px) {
    [data-section-id="657f778af1a704689bdfd139"] {
        min-height: unset !important;
        height: 30vh !important;
		margin-top: 5vh !important;
    }
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
20 hours ago, tuanphan said:

You can set margin top code. I think header overlap section abit

@media only screen and (max-width: 767px) {
    [data-section-id="657f778af1a704689bdfd139"] {
        min-height: unset !important;
        height: 30vh !important;
		margin-top: 5vh !important;
    }
}

 

Thank you @tuanphan. I updated the code but still with no luck. I think the problem is not with the header section but with the banner section itself. This is how it looks on my Iphone:

 

URL: www.gastonduflos.com

IMG_1701.jpg

Link to comment
22 minutes ago, GastonDuflos said:

Thank you @tuanphan. I updated the code but still with no luck. I think the problem is not with the header section but with the banner section itself. This is how it looks on my Iphone:

 

URL: www.gastonduflos.com

IMG_1701.jpg

The banner image looks fine. What is problem now? If you mean white space between header - image, you can reduce number in margin top

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
21 hours ago, tuanphan said:

The banner image looks fine. What is problem now? If you mean white space between header - image, you can reduce number in margin top

Thanks @tuanphan. The image doesnt look fine, its cropped on mobile. Please see images attached below to see thats there is at least a 30% of the height image been cropped on mobile. 

The image on desktop is 100%. 

IMG_1701.jpg

Screenshot 2023-12-21 at 6.04.43 pm.png

Link to comment
On 12/21/2023 at 2:06 PM, GastonDuflos said:

Thanks @tuanphan. The image doesnt look fine, its cropped on mobile. Please see images attached below to see thats there is at least a 30% of the height image been cropped on mobile. 

The image on desktop is 100%. 

IMG_1701.jpg

Screenshot 2023-12-21 at 6.04.43 pm.png

Change to 40vh

image.thumb.png.09a514d6a37614f8c9132662ad3e018c.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.