Jump to content

Create double line under header

Go to solution Solved by Spark-Plugin,

Recommended Posts

Posted

Site URL: http://designbuildhamptons.com/home

Hi,

I'm looking to create a double line under the header. I created the lines you see currently with this code, but the double aspect isn't working:

div.header-announcement-bar-wrapper {
  border-top: 2px solid #0a1c30 !important;
  border-bottom: 1px double #0a1c30 !important;
}

See attached for the look I'm trying to create.

Julia

DBH_Contact.png

  • Replies 2
  • Views 347
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
Posted

Hi @designbyjrs, try this code and let me know how it goes:

div.header-announcement-bar-wrapper {
  border-top: 3px solid #0a1c30 !important;  /* Top solid border */
  position: relative;  /* Ensure ::after pseudo-element is positioned correctly */
  padding-bottom: 5px; /* Optional: Adds some space for the bottom lines */
}

div.header-announcement-bar-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; /* The lowest line is at the bottom */
  left: 0;
  width: 100%;
  height: 2px; /* Thickness of the second line */
  background-color: #0a1c30;
}

div.header-announcement-bar-wrapper::before {
  content: '';
  position: absolute;
  bottom: 15px; /* Distance between the two bottom lines */
  left: 0;
  width: 100%;
  height: 2px; /* Thickness of the first bottom line */
  background-color: #0a1c30;
}

 

Screenshot 2024-10-22 at 09.36.28.png

- Answered by Iuno from sparkplugin.com

forumsignature-recommendedcopy2.png.0579645eb1430dc7c1059541dc6456c6.png

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.