Jump to content

Mobile banners & image sizes too big

Recommended Posts

Site URL: http://www.danielleberggren.com

Hi, I've gone through and plugged in a bunch of different CSS code into the Custom CSS design based off other responses in this forum. The best performing one was this:

Quote

/* resize mobile banner */
@media screen and (max-width:767px) {
body.homepage #page section:first-child {
    min-height: 20vh !important;
    height: 30vh;
    margin-top: 10vh;
}
}

Which alters the top banner of my home page ONLY, not any of the other images. 

image.png.fcdcf9783bf63043720238b366ef374f.png

image.png.b569eacd06d4698fa4c53ceb70e2afb8.png

As you can see in the images, the first banner is sized correctly, but the rest on mobile are cut off. I've messed with the size and dimensions of the images, too, but that doesn't seem to help matters at all. 

Any help would be appreciated.

Link to comment
  • Replies 11
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="62b67cfcfd8b381bc82223eb"] {
    min-height: unset !important;
}
[data-section-id="62b6839e209a9c0e21883dd2"] {
    min-height: unset !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
13 hours ago, tuanphan said:

Add to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="62b67cfcfd8b381bc82223eb"] {
    min-height: unset !important;
}
[data-section-id="62b6839e209a9c0e21883dd2"] {
    min-height: unset !important;
}
}

 

Thank you so much, that worked!

Link to comment
11 hours ago, DBerggren said:

Actually, sorry, but it's not working on any of the other pages on the mobile version of the site, just the home page. Anything for those additional pages? 

Can you share link to all pages where you have problem?

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
17 hours ago, DBerggren said:

Thank you so much, that worked!

Do Similar below code. Use this tool to find data section id.

https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

@media screen and (max-width:767px) {
[data-section-id="62b67cfcfd8b381bc82223eb"] {
    min-height: unset !important;
}
[data-section-id="62b6839e209a9c0e21883dd2"] {
    min-height: unset !important;
}
}

Let me know if you still have problem.

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
7 hours ago, garybooker said:

Hi @tuanphan!

I have tried almost all of your previous suggestions from this and other threads. Nothing works for www.platonicpartnership.com

Could you help?

Can you take a screenshot of banner? I don't see any banner image on homepage

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
  • 5 months later...
On 7/11/2022 at 8:36 AM, tuanphan said:

Can you take a screenshot of banner? I don't see any banner image on homepage


I see you had helped out these two people here, I seem to have issues with banners on all pages on www.jinglepotlandscaping.com

on desktop the banners are wide and short, but they are full size square on mobile.  I’m not worried about part of the image being cut off just wanted to get hammer to a regular banner size.  Would this code you recommend above also work for me?  Would really appreciate any reply.  Thanks 

Link to comment
On 12/21/2022 at 8:05 AM, Jinglepot said:


I see you had helped out these two people here, I seem to have issues with banners on all pages on www.jinglepotlandscaping.com

on desktop the banners are wide and short, but they are full size square on mobile.  I’m not worried about part of the image being cut off just wanted to get hammer to a regular banner size.  Would this code you recommend above also work for me?  Would really appreciate any reply.  Thanks 

Try adding to Design > Custom CSS

@media screen and (max-width:640px) {
.banner-thumbnail-wrapper figure img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
.banner-thumbnail-wrapper {
    padding: 0 !important;
    height: 200px !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
8 hours ago, tuanphan said:

Try adding to Design > Custom CSS

@media screen and (max-width:640px) {
.banner-thumbnail-wrapper figure img {
    width: 100% !important;
    left: 0 !important;
    height: auto !important;
}
.banner-thumbnail-wrapper {
    padding: 0 !important;
    height: 200px !important;
}
}

 

well now I can't remember what it looked like before but definitely sure the banners have changed, I think that extra little bit of height removed from the banner is alot better. 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.