Jump to content

Banner Image Won't Resize for Mobile View

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Hello, 

Our banner artwork appears fine on our site when viewing on a computer screen, but the mobile view does not resize the banner and cuts off the bulk the image versus resizing for the mobil platform. Any tips on why this is happening, and how resolve it? We've found that the majority of site visitors use mobile, and don't want to reduce the impact of the image.

Thanks in advance.

IMG_5025.PNG

Screen Shot 2019-12-13 at 11.16.48 AM.png

  • 2 weeks later...
  • 2 months later...
Posted

@tuanphan any idea how to modify this code snippet to only affect the first banner image on an index homepage?

When I use the snippet as-is, it affects all section background images on the homepage index. I only want the first one changed. Do I have to add the block ID or the hash-tagged section name?

 

Thanks!

Posted
19 minutes ago, Upside said:

@tuanphan any idea how to modify this code snippet to only affect the first banner image on an index homepage?

When I use the snippet as-is, it affects all section background images on the homepage index. I only want the first one changed. Do I have to add the block ID or the hash-tagged section name?

 

Thanks!

Can you share link to your site?

 

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!)

Posted (edited)

The changes in 7.1 have totally screwed me up. Apparently they aren't index pages anymore on certain templates.

Edited by Upside
Posted
3 minutes ago, Upside said:

The changes in 7.1 have totally screwed me up. Apparently they aren't index pages anymore on certain templates.

@media screen and (max-width:640px) {
[data-section-id="5e5d461757cae6512002d1c0"] .section-background img {
    width: 100% !important;
    height: auto !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!)

  • 3 weeks later...
Posted
On 1/5/2020 at 4:01 AM, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:640px) {
.homepage .section-background img {
    width: 100% !important;
    height: auto !important;
}
}

 

This Worked for me, except I have a video that shows resized in editing but now has a grey dead space. And video will not not show on actual mobile site. Is there a fix for this? http://TheBrandonAnthony.com

Posted
On 4/3/2020 at 2:43 AM, Lisasumthin said:

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="5e5c9aff118337590dcf052e"] {
    min-height: 40vh !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!)

Posted
17 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:767px) {
[data-section-id="5e5c9aff118337590dcf052e"] {
    min-height: 40vh !important;
}
}

Thank you!! it worked.

 

Posted (edited)

Im having the same problem with the Foster template.  The hero banner on my homepage will not resize for mobile.  This is a 7.0 template.  Could someone please help me with the custom CSS code for this to fix it?   safonovaparkcity.com

Thanks!

@tuanphan Can you please help me?  I PM'd you also. Thanks!

 

Edited by BLamprou
Added info
Posted

@tuanphan

I hope you are well during this time.

 

I've seen your posts/suggestion for adding to custom css for mobile view, but it's not resizing for me.

Would you be able to tell me what I have to modify for the first parallax image to resize for mobile?

Also I'm trying to resize the page's with the images to 2/3 their height and not the full, but nothing I'm trying is working.

 

This is my website..

www.rudycatwell.com

PNG image.png

Screen Shot 2020-04-08 at 3.45.58 PM.png

Posted
On 4/9/2020 at 6:16 AM, RUDECAT said:

@tuanphan

I hope you are well during this time.

 

I've seen your posts/suggestion for adding to custom css for mobile view, but it's not resizing for me.

Would you be able to tell me what I have to modify for the first parallax image to resize for mobile?

Also I'm trying to resize the page's with the images to 2/3 their height and not the full, but nothing I'm trying is working.

 

This is my website..

www.rudycatwell.com

 

 

Where image?

image.thumb.png.1eca10bb4eb63ff8314580885f8cf058.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!)

  • 2 weeks later...
Posted

Hi guys, having a similar issue here as the other posters... All banners are scaling properly on my site in mobile, except for one! 

I've read through a million articles and posts on here, played with code and am still having trouble. Would anyone be able to have a look for me and see where I'm going wrong!? I just don't have the tech abilities to understand it.

URLs is: https://gopher-mackerel-pen5.squarespace.com/contact
PW: HIP2020!

There is a lot of code in the Custom CSS panel from previous designer building it, not mine btw. 

Thanks in advance!

Jay.

 

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.