Jump to content

Transparent background on dropdown menu

Recommended Posts

Site URL: https://cyan-oriole-hy6e.squarespace.com/

I have been trying to make the background on the dropdown menu transparent but can't seem to make anything work. I have tried this the following but the background is still there. Also trying to get a hover underline on the drop down links without making the «Table of Contents» title also have an underline. PLEASE any suggestions? 

I have tried the following for example. Does not work. 


.header-nav-folder-content {
  background: transparent;
}

Edited by Lillayla
Link to comment
1 hour ago, Lillayla said:

Site URL: https://cyan-oriole-hy6e.squarespace.com/

I have been trying to make the background on the dropdown menu transparent but can't seem to make anything work. I have tried this the following but the background is still there. Also trying to get a hover underline on the drop down links without making the «Table of Contents» title also have an underline. PLEASE any suggestions? 

I have tried the following for example. Does not work. 


.header-nav-folder-content {
  background: transparent;
}

Try adding to Home > Design > Custom Css

.header-nav-folder-content {
  background: transparent !important;
}
.header-nav-folder-title:after, .header-nav-folder-content .header-nav-folder-item a:after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: #fff; /*color of line*/
  position: absolute;
  transition: width 0.3s;
}
.header-nav-folder-content .header-nav-folder-item a {
  display:inline-block;
  position: relative;
}
.header-nav-item:hover .header-nav-folder-title:after, .header-nav-folder-content .header-nav-folder-item a:hover:after {
  width: 100%;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.thumb.png.4db9d0648f2a51166fef2ffccee927fe.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 1 year later...
15 hours ago, Priscillia said:

Hello, 

I tried using 
 

.header-nav-folder-content {
  background: transparent !important;
}

But it doesn't work. Maybe it has changed in 7.1 ? 

My website is : https://www.fcknyefestival.com

Use this code

div.header-nav-folder-content {
    background-color: transparent !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
  • 2 weeks later...
16 hours ago, Priscillia said:

Hello, 

Unfortunately this didn't work

It doesn't work because you added the code to mobile query so it run on mobile only (red code).

image.png.06809344b75a6527095e132a57f5d916.png

You can move my code to top of CSS box

div.header-nav-folder-content {
    background-color: transparent !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.