Jump to content

How to make a hover menu transparent?

Recommended Posts

  • Replies 3
  • Views 499
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 years later...

Hi @tuanphan referencing your above recommendation I've added this css below into Custom CSS to add an opacity behind the navigation dropdown. It looks good, however it's now persistent instead of only showing on hover.

.header-nav-folder-content {
    opacity:.6 !important;
  min-width: 135px !important;
}

Opacity applied as desired, but the drop down is now persistent instead of on hover:

image.png.fa7d8315be81e75437a58ea7558ec83c.png

This is the url: https://www.theyhadfun.com/

I've since commented the css out so it's not currently displaying.

How can I ensure the opacity is added, but the drop down only displays on hover?

Link to comment
On 4/20/2023 at 11:13 PM, KHR said:

Hi @tuanphan referencing your above recommendation I've added this css below into Custom CSS to add an opacity behind the navigation dropdown. It looks good, however it's now persistent instead of only showing on hover.

.header-nav-folder-content {
    opacity:.6 !important;
  min-width: 135px !important;
}

Opacity applied as desired, but the drop down is now persistent instead of on hover:

image.png.fa7d8315be81e75437a58ea7558ec83c.png

This is the url: https://www.theyhadfun.com/

I've since commented the css out so it's not currently displaying.

How can I ensure the opacity is added, but the drop down only displays on hover?

Use this code instead

div.header-nav-folder-content {
    background-color: rgba(225, 204, 190,0.6) !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.