Jump to content

Changing the background overlay on one section on mobile only

Recommended Posts

Site URL: https://triangle-keyboard-t5hz.squarespace.com

Hi - I am changing increase the overlay opacity on the top image on mobile only. This is the code I am using without success.

@media screen and (max-width: 640px) {
 [data-section-id=“609aa62a18656e56660631b2”]  
.section-background .section-background-overlay {
opacity: 0.3;
  }}
 

If anyone can tell me what I am doing wrong that would be great. I am getting a syntax error on the [data.. ] section. 

Thank you.

Password: WLAC

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

use this code

@media screen and (max-width: 767px) {
    [data-section-id="609aa62a18656e56660631b2"] .section-background-overlay {
        background-color: rgba(0,0,0,0.9) !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

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.