Jump to content

Mobile header CSS for background color

Go to solution Solved by tuanphan,

Recommended Posts

Hi sqaurespace community, I need some help please putting a semi-transparent colour behind the homepage header on mobile views.

I can get it to work as wanted when i use the code inspector on Google chrome but not when entering the same code to the Squarespace page. Any assistance valued, thanks!

The website is:

https://www.firstpeoplesleading.com.au/

PW: Callan

Mobile header CC I'm using is:

@media only screen and (max-width: 640px){
.header {
background-color: rgb(255, 255, 255, .5);

Thanks,

First screenshot shows how it looks with the above code showing in the header. The second screenshot shows what I'd like it to look like (less the code on the page).
}ScreenShot2023-11-12at4_04_57pm.thumb.png.68752b4eb303ff1ef4d0ab32b2eae485.png
}ScreenShot2023-11-12at4_06_17pm.thumb.png.8813b1737c48218dd7784acde8f88ed5.png

 

Link to comment

Thank you, I had tried that and I get no response to the mobile header code. See screenshots of what I have tried in the custom CSS section. I've tried the following:

 

@media only screen and (max-width: 640px){
#collection-652f8e9dea52a52756969ded
.header {
background-color: rgb(255, 255, 255, .5);
  }
}

 

And

@media only screen and (max-width: 640px){
.header {
background-color: rgb(255, 255, 255, .5);
  }
}

Mobile-header-v2.png

Mobile-header-v1.png

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.