Jump to content

Customizing a button in a header navigation

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Add to Website > Page > Website Tools (under Not Linked) > Custom CSS

nav.Header-nav--primary>div>a:last-child {
    border: 2px solid white;
    padding-left: 10px !important;
    padding-right: 10px !important;
    display: inline-block;
    border-radius: 20px;
}

 

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...
15 hours ago, Patricija said:

hi @tuanphan! any chance you could help add a line of code? 

I would like the whole button to be highlighted like in the photo when being active. can you please help? 

 

Screenshot 2023-11-30 at 19.02.47.png

Add this code under

nav.Header-nav--primary>div>a:last-child:hover {
    background-color: #d5e8e8 !important;
    border-color: #d5e8e8 !important;
    color: black !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.