Jump to content

Main Navigation Opaque Background Overlay

Recommended Posts

Site URL: https://enlightenedleaders.squarespace.com/

Hello, I am using the below code to create an opaque black background for my main navigation. At the moment, the code for the opacity is making the text opaque as well. I do not want this to happen - it should be 100% white...

.Header--bottom.Header--overlay {
  background: black;
  opacity: 20%;
}

Site password: MVLF

Please help, and thanks in advance for any assistance!

Edited by earthwindflowermoon
Link to comment
  • Replies 2
  • Views 325
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Remove your code & use this new code

.Header--bottom.Header--overlay {
    background: rgba(0,0,0,0.2);
}

(We can use rgba color to make opacity, instead using opacity attribute)

Edited by tuanphan

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.