Jump to content

Navigation dropdown expanding to the other link

Recommended Posts

Site URL: https://www.fantasy-animation.org

Here is the site URL: https://www.fantasy-animation.org 

It is version 7.0

I've had some problems with the dropdown nav as the 'Contact Us' was being cut off from the screen and used the following CSS code to make sure it was more left: 

.header-actions--right {
  width: 20vw !important;
}
[href="/contact-us"]+.Header-nav-folder {
    left: -75% !important;
}

But in doing so, when trying to go the dropdown for 'About', it ends up becoming the dropdown for 'Contact Us'. 

Was this a dropdown padding issue or a site padding issue? 

 

Screenshot 2022-05-17 at 1.28.13 PM.png

Link to comment
  • Replies 4
  • Views 231
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi!

Nope, sadly! The thing is, when you try clicking on any of the options under 'About', it moves to the dropdown for 'Contact Us' instead. There's this weird switch that happens and yeah, can't access any of the options under 'About'.

Link to comment
9 hours ago, hrx26 said:

Hi!

Nope, sadly! The thing is, when you try clicking on any of the options under 'About', it moves to the dropdown for 'Contact Us' instead. There's this weird switch that happens and yeah, can't access any of the options under 'About'.

Remove your code & try this new code

span.Header-nav-item.Header-nav-item--folder:nth-child(6):hover span.Header-nav-folder {
    left: -50% !important;
}
span.Header-nav-item.Header-nav-item--folder:nth-child(5):hover span.Header-nav-folder {
    left: -50% !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...
On 5/21/2022 at 7:26 AM, tuanphan said:

Remove your code & try this new code

span.Header-nav-item.Header-nav-item--folder:nth-child(6):hover span.Header-nav-folder {
    left: -50% !important;
}
span.Header-nav-item.Header-nav-item--folder:nth-child(5):hover span.Header-nav-folder {
    left: -50% !important;
}

 

Thank you SO MUCH! it works perfectly!! 

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.