Jump to content

How to remove the white background box around the drop down menu

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Hi,

I have 2 questions I'm hoping you can help me solve in regards to the top menu bar:

Q. Part 1:

I want the drop down menu to have a transparent background (no white container) Please see attached pic for reference. How do I make this happen?

Q. Part 2:

I also added this custom code to create a hover effect on links but I don't want it to apply to the main menu bar because it's too jittery. How do I remove it from the main menu bar but keep it on the other links/buttons (including the 'contact me' button in the menu bar?

 a {
text-decoration: none !important;
transition: 0.3s : important;

&:hover {
opacity: 1 !important;
  transition: 0.3s !important;
   margin-top: -8px !important;
}

 

Thanks!

Screenshot 2024-04-20 at 00.26.34.png

  • Replies 10
  • Views 1.7k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 4/26/2024 at 10:27 AM, VitaminB said:

Hi @tuanphan thanks so much! For some reason the hover effect is now not working on the 'view animation' button on this section: https://www.escreative.net/red-cross-lifeblood-animation#Animation

It also stopped working on the orange 'contact me' button in the main menu bar?

password is: escuxlocked

With header button, add this code under

a.btn {
text-decoration: none !important;
transition: 0.3s : important;

&:hover {
opacity: 1 !important;
  transition: 0.3s !important;
   margin-top: -8px !important;
}

With View animation button, I don't see this button, can you take a screenshot?

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
On 4/28/2024 at 6:31 PM, VitaminB said:

Thanks @tuanphan that worked perfectly for the header button!
Here's a screenshot for the 'View animation' one:

Screenshot 2024-04-28 at 21.30.01.png

With View Animation, use this code

a[href="#Animation"].sqs-block-button-element {
text-decoration: none !important;
transition: 0.3s : important;

&:hover {
opacity: 1 !important;
  transition: 0.3s !important;
   margin-top: -8px !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!)

  • Solution
Posted
On 5/6/2024 at 9:40 AM, VitaminB said:

Thanks @tuanphan , unfortunately, that's not working for some reason? 

Use this new code

a[href="#Animation"].sqs-block-button-element {
text-decoration: none !important;
transition: 0.3s !important;
position: relative;
}
a[href="#Animation"].sqs-block-button-element:hover {
opacity: 1 !important;
  transition: 0.3s !important;
 transform: translatey(-8px) !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!)

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.