Jump to content

Resize Background Image for Mobile

Recommended Posts

  • Replies 3
  • Views 207
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try adding to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="628d0a2769228175152ecb9b"] .section-background img {
    object-fit: contain !important;
}
[data-section-id="628d0a2769228175152ecb9b"] .section-background {
    background-color: white;
}}

 

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
  • 1 month later...

Hey! Me again,

 

I'm looking to reduce the size of this image for mobile, but I still need it as a full bleed. I used the code above and replaced the section id with the accurate one for this new site, but it shrinks it completely and doesn't fill out the section, causing too much space between the image + header, and the image + next section. 

Here is the website: https://trombone-tiger-zfb6.squarespace.com/

Password: foryou2

It's on the Service page, first image at the top. 

Link to comment
16 hours ago, CFlo said:

Hey! Me again,

 

I'm looking to reduce the size of this image for mobile, but I still need it as a full bleed. I used the code above and replaced the section id with the accurate one for this new site, but it shrinks it completely and doesn't fill out the section, causing too much space between the image + header, and the image + next section. 

Here is the website: https://trombone-tiger-zfb6.squarespace.com/

Password: foryou2

It's on the Service page, first image at the top. 

My code, for your first problem

With current problem, you need another code.

@media screen and (max-width:767px) {
[data-section-id="62cc7a213be8f577160da81c"] {
    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

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.