Jump to content

Edits to Keyline under header? Squarespace 7.1

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://gar-cow-cwsx.squarespace.com/

Hello!

I've added a keyline under my header of 1px. There are two edits I'd like to make.

1. I'd like the keyline to end at the site margins rather than being full bleed (same as the keylines in the footer).

2. I'd like the header keyline ONLY on the projects page to be #38402e  (follow the colour theme - at the moment is isn't visible)

Can anyone help? 

Thanks! 

Site password: bertie 

Link to comment
  • Replies 4
  • Views 593
  • Created
  • Last Reply

Top Posters In This Topic

Q1. First remove this code

.header {
    border-bottom: 1px solid #d2c8cd;
    padding-bottom: 1px;
}

add this code

/* header line */
header#header:after {
    content: "";
    display: block;
    height: 1px;
    width: calc(~"100% - 34px");
    background-color: #d2c8cd;
    margin-left: auto;
    margin-right: auto;
}

Q2. Do Q1 first, then we can check Q2 code.

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
  • Solution
On 7/29/2021 at 1:05 PM, AnnieTimmins said:

Thanks @tuanphan That's working for Q1!!

Add to Design > Custom CSS

/* Projects header underline color */
body#collection-60ed2a12493b4338208a9cb5 header#header:after {
    background: #38402e;
}

 

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.