Jump to content

Transparent background on dropdown menu

Recommended Posts

Posted (edited)

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
Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • 1 year later...
Posted
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!)

  • 2 weeks later...
Posted
On 12/13/2023 at 2:43 AM, tuanphan said:

Use this code

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

 

Hello, 

Unfortunately this didn't work

Posted
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!)

Posted
6 hours ago, tuanphan said:

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;
}

 

Indeed thank you !!

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.