Jump to content

Background images on border disappear on mobile and smaller screen

Recommended Posts

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Add to Design > Custom CSS

/* Healing page mobile */
@media screen and (max-width:767px) {
[data-section-id="600237a6e40b7c3f2cd7e54a"] .section-background img {
    object-fit: contain !important;
    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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 5/7/2021 at 9:56 PM, Peter550 said:

Thats great that works on that page! 

What do I edit on the code so it applied accross site? @tuanphan

remove this line 

Quote

[data-section-id="600237a6e40b7c3f2cd7e54a"]

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
7 hours ago, Peter550 said:

unfortunately this messed up the rest of the site (see screenshots) 

 

Any idea how to fix this @tuanphan

Which code did you add after remove above id?

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

I added the following code: 

 

/* Healing page mobile */
@media screen and (max-width:767px) {
[data-section-id="600237a6e40b7c3f2cd7e54a"] .section-background img {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
}
}
Link to comment
15 hours ago, Peter550 said:

I added the following code: 

 


/* Healing page mobile */
@media screen and (max-width:767px) {
[data-section-id="600237a6e40b7c3f2cd7e54a"] .section-background img {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
}
}

It looks like you solved?

image.thumb.png.64b97b8a7b7d4d934b53a538b9fbe095.png

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.