Jump to content

Adding lines below navigation

Recommended Posts

Starting to work on a new website and looking to add some character to the header by placing two solid lines horizontal across the page. I have been able to figure out how to do a single line, by adding the following to the CUSTOM CSS, but nothing I do allows me to have a second line in a different color, which is what I am trying to achieve. I am using the MENTOR template and I'd like to have this to separate the header from the main section of the page in the instance where I might not use a banner image

.Header { border-bottom: 5px solid #b0b579;}

Edited by melansonmedia
Initial Revision
Link to comment
  • Replies 10
  • Views 6.2k
  • Created
  • Last Reply

Top Posters In This Topic

That didn't work, but I had subsequently tried what is below and it works on the homepage, but not on the internal pages. On the internal pages, the header outline (line 3) is not visible, just the border-bottom.

Any thoughts as to what might be going on? Here is the site URL, hfprc.squarespace.com still in the early stages of design and layout. Thanks for any insight.

1 .Header {

2 border-bottom: 5px solid #86b2d8;

3 outline: 5px solid #b0b579;

4 }

5 .Footer{

6 border-top: 5px solid #b0b579;

7 }

Link to comment
  • 2 years later...
On 10/24/2020 at 6:00 AM, nataliaswarz said:

is there a way to change the color of this line on one page only?

www.hotel-weekend.com

Add to Page Settings > Advanced > Header

<style>
  header.Header {
    border-color: white !important;
}
</style>

 

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 years later...
On 10/27/2022 at 7:08 PM, C-bear said:

Hey I would love to achieve this effect as well, with a line above and below the navigation bar but the above code did not make any changes to my website... any help would be appreciated 🙂

Site url: https://www.chloebthomas.com 

I see you figured it out with this code?

nav.main-nav .active-link a {
    border-bottom: 1px solid currentColor;
}

 

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
  • 1 year later...

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.