Jump to content

Unable to target correct code

Recommended Posts

Hello,

I can't figure out how to target the 'join now' navigation link in my mobile menu to give it an outlined border style similar to the 'join now' button that is in the desktop nav. I have been able to change the font style, but can't add any border. I think the structure is different as this has been added in as a mindbody widget so it isn't contained in the 'header-menu-nav-wrapper'. I have tried targeting the header-menu-nav-item and using 'last-child', nth-child' but they both still select another nav item in the other 'header-menu-nav-wrapper' group.  

Any help would be much appreciated!

Thank you

 

The site is in the process of connecting to a domain, the alternative url is http://www.highdefinitionfitness.com.au/

Screenshot 2024-01-12 at 5.12.16 pm.png

Screenshot 2024-01-12 at 5.15.12 pm.png

Screenshot 2024-01-12 at 5.15.42 pm.png

Screenshot 2024-01-12 at 5.19.42 pm.png

Link to comment
  • Replies 3
  • Views 1k
  • Created
  • Last Reply

Top Posters In This Topic

On 1/16/2024 at 5:14 AM, indiarose1511 said:

It should be enabled? If you go to highdefinitionfitness.com.au it is showing for me

You can use code like this

.header-menu-nav-item a.healcode-link {
    display: inline-block;
    border: 2px solid white !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
}

image.png.3bad41c007632803578d731bd066938b.png

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.