Jump to content

Formatting the "contact" link on the navigation bar

Recommended Posts

I wrote code to turn the "contact" link of my website into a colored button, and it works during the editing process, but the moment I save, it removes all of the changes that I've made. Here is the code that I've used,


.Header-nav.Header-nav--secondary 
a.Header-nav-item:last-of-type {
 background-color: #900020;
 padding: 10px 20px;
 border-radius: 3px;
 border-bottom: 1px solid #900020;
 color: white;
}

.Header-nav.Header-nav--secondary a.Header-nav-item:last-of-type:hover {
 background-color: #900020;
}

It's supposed to look like the photo I"ve enclosed, but it ends up only being white. Can someone figure out what's going on? I'm on the brine-template

If you want to visit the website, its robertchinnfoundation.squarespace.org and the password is open

squarespace.jpg.0f63bb630e04272c8a51a878404ec1d8.jpg

Link to comment
  • Replies 2
  • Views 544
  • Created
  • Last Reply

@HelpMePlease looks good here

try


.Header-nav--secondary .Header-nav-inner a {
   background-color: #900020;
   padding: 10px 20px !important;
   border-radius: 3px;
   border-bottom: 1px solid #900020 !important;
   color: white;
}


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

@HelpMePlease looks good here

try


.Header-nav--secondary .Header-nav-inner a {
   background-color: #900020;
   padding: 10px 20px !important;
   border-radius: 3px;
   border-bottom: 1px solid #900020 !important;
   color: white;
}


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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.