Jump to content

Double Line Bottom Boarder Code Required

Recommended Posts

I want to put two horizontal lines on top of each other on my site nav. At the moment, I have one bottom border on the Navigation, and I want to add another line a little above it to create a stacked-line look. 

I have attached an image of what I'm working with and an image of how I want it to look. I can't figure this one out! 

Screenshot 2024-08-19 at 14.04.26.png

Screenshot 2024-08-19 at 14.06.22.png

Link to comment
2 hours ago, CharlieThomas said:

I want to put two horizontal lines on top of each other on my site nav. At the moment, I have one bottom border on the Navigation, and I want to add another line a little above it to create a stacked-line look. 

I have attached an image of what I'm working with and an image of how I want it to look. I can't figure this one out! 

Screenshot 2024-08-19 at 14.04.26.png

Screenshot 2024-08-19 at 14.06.22.png

Can you share your URL so I can check it more easily?

Press 👍  or mark my comment as solution if you find my sharing useful

🆒 Squarespace pinchzoom lightbox plugin (affiliate link)

👁‍🗨 360 degree photo viewer (affiliate link)

Link to comment
On 8/20/2024 at 12:22 AM, CharlieThomas said:

Hey, Yes of course it is https://wendly.squarespace.com/ Only just started working on it so it's a bit of a wild mess. 

You can use this to Custom CSS box

header#header {
    border-bottom: 1px solid #000;
    padding-bottom: 2px !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
On 8/19/2024 at 2:07 PM, CharlieThomas said:

I want to put two horizontal lines on top of each other on my site nav. At the moment, I have one bottom border on the Navigation, and I want to add another line a little above it to create a stacked-line look. 

This is an interesting one. 

It doesn't seem easy to override the Squarespace border-width CSS rule. So here is what I have for you.

    1. Add this code to your Custom CSS

This will set the border to using a double line instead of a single line.

/* Set the header border to double line (instead of solid/single line) */
.header .header-announcement-bar-wrapper .header-border {
  border-style: double!important;
}

   2. In your Squarespace settings, Edit Site Header > Edit Design > under Design tab, Border:

  • Thickness, click on the three dots > change to 3px
  • Position: bottom (this should already be set)

Changing the thickness to 3px sets the border-width to 3px, which allows for the double lines to be shown.

Let me know how it goes!

image.png.e8c2532d2b5067407e7a2682a7363ac3.png

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
🧰 See the tools I use (contain affiliate links)
 Did I help? I like coffee (Thank you)

Link to comment
18 hours ago, melody495 said:

This is an interesting one. 

It doesn't seem easy to override the Squarespace border-width CSS rule. So here is what I have for you.

    1. Add this code to your Custom CSS

This will set the border to using a double line instead of a single line.

/* Set the header border to double line (instead of solid/single line) */
.header .header-announcement-bar-wrapper .header-border {
  border-style: double!important;
}

   2. In your Squarespace settings, Edit Site Header > Edit Design > under Design tab, Border:

  • Thickness, click on the three dots > change to 3px
  • Position: bottom (this should already be set)

Changing the thickness to 3px sets the border-width to 3px, which allows for the double lines to be shown.

Let me know how it goes!

image.png.e8c2532d2b5067407e7a2682a7363ac3.png

You are a total hero! It worked! Thank you! I gather that the only way to display the line is to change the line weight, so there is no way to keep the line weight the same but increase the spacing between the two lines. I can't work out if visually they look too close together, but I think they give the site something extra. I would love to know your thoughts. wendly.co.uk Thanks again, you're amazing. 

Link to comment
7 hours ago, CharlieThomas said:

I gather that the only way to display the line is to change the line weight, so there is no way to keep the line weight the same but increase the spacing between the two lines.

Not with using border: double.

If you want more control of the second line, you can try tuanphan's code above. Does that work better?

-------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification 

Melody | Squarespace Nerd
e: melody@melodylee.tech


💻 💁‍♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn?
👩‍💻 💁‍♀️ Website help <- send me your to-do list. From code to plugin to domain setup.
🧰 See the tools I use (contain affiliate links)
 Did I help? I like 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.