Jump to content

Adding Borders to Navigation/Header Elements

Recommended Posts

Posted

Add to Home > Design > Custom CSS

.header-announcement-bar-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.header-title-nav-wrapper {
    border-right: 1px solid black;
    padding-right: 20px;
    padding-top: 3vw;
    padding-bottom: 1vw;
}

 

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!)

  • 9 months later...
Posted
3 hours ago, louieandthird said:

Hi, @tuanphan! I also would like to add a border (mainly the bottom) to my navigation bar. All of the codes I've tried so far just would not work. Can you help, please?

SITE URL: http://www.louieandthird.com

PW: LTC

Thank you so much!

Add to Design > Custom CSS

/* Header border */
header#header {
    border-bottom: 1px solid gray;
}

 

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!)

Posted
5 hours ago, tuanphan said:

Add to Design > Custom CSS


/* Header border */
header#header {
    border-bottom: 1px solid gray;
}

 

THANK YOU!! 🙂

Posted
On 5/24/2021 at 8:33 PM, louieandthird said:

THANK YOU!! 🙂

The site has some problems. Do you want to fix these?

Site URL – https://www.louieandthird.com/

1. (Mobile-Header) Increase logo size?

louieandthird.com-01-min.png

2. (Mobile-Footer) Align left footer?

louieandthird.com-02-min.png

3. (Mobile-Services) Text/image overlap together

louieandthird.com-03-min.png

4. (Tablet/Mobile-Overlay Menu) change it to custom font?

louieandthird.com-04-min.png

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!)

  • 5 weeks later...
Posted
On 5/26/2021 at 8:57 AM, tuanphan said:

The site has some problems. Do you want to fix these?

Site URL – https://www.louieandthird.com/

1. (Mobile-Header) Increase logo size?

louieandthird.com-01-min.png

2. (Mobile-Footer) Align left footer?

louieandthird.com-02-min.png

3. (Mobile-Services) Text/image overlap together

louieandthird.com-03-min.png

4. (Tablet/Mobile-Overlay Menu) change it to custom font?

louieandthird.com-04-min.png

Hi @tuanphan! Sorry, I just saw this right now. Yes, I'd like those fixed if that's no trouble. Though, I think i've already fixed numbers 2 and 3. But please, double check. Also, for the footer, how can I  make the bottom space even with the top part? Thank you so much!

Posted
On 6/25/2021 at 10:36 AM, louieandthird said:

Hi @tuanphan! Sorry, I just saw this right now. Yes, I'd like those fixed if that's no trouble. Though, I think i've already fixed numbers 2 and 3. But please, double check. Also, for the footer, how can I  make the bottom space even with the top part? Thank you so much!

Add to Design > Custom CSS

/* fix issues */
@media screen and (max-width:767px) {
/* logo size */
.header-title-logo img {
    max-height: 70px;
}
/* mobile font */
div.container.header-menu-nav-item * {
    font-family: Frunchy !important;
}
/* footer space */
div#block-7f7c03cb870e582d2a02 {
    margin-bottom: 3vw !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!)

Posted
5 hours ago, tuanphan said:

Add to Design > Custom CSS


/* fix issues */
@media screen and (max-width:767px) {
/* logo size */
.header-title-logo img {
    max-height: 70px;
}
/* mobile font */
div.container.header-menu-nav-item * {
    font-family: Frunchy !important;
}
/* footer space */
div#block-7f7c03cb870e582d2a02 {
    margin-bottom: 3vw !important;
}
}

 

Thank you so much!!

  • 8 months later...
  • 5 months later...
Posted
On 9/14/2022 at 1:34 AM, nhinhidesigns said:

@tuanphan I have similar question, do you know how to make the bar like Work with Thea like this? https://flatworm-cylinder-yntb.squarespace.com/

What is your site url? We can check code easier

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!)

  • 2 months later...
Posted
On 11/29/2022 at 4:18 AM, maddie123 said:

Hi I am looking to add a border to my navigation links similar to this site: https://www.oakandstonetherapy.com/

Does anyone know the CSS to customize my header similarly?

That site uses this CSS

.header-nav {
    width: 100%;
    border-top: 1px solid #594f48;
    border-bottom: 1px solid #594f48;
    padding-top: 8px;
    padding-bottom: 8px;
}

 

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!)

  • 1 year later...
Posted
On 9/19/2024 at 7:04 AM, karamickell5 said:

@tuanphan Can you help me with the same question as above? I'd like my site page text to have a border on the top and bottom like https://www.oakandstonetherapy.com/ or  https://thesixpence.com/

I would like the board to be on every page except the home page.

My site is https://www.clubhousevenue.com/

Thanks!!

You can use this CSS code

@media screen and (min-width:992px) {
.header-layout-branding-center-nav-center .header-title-nav-wrapper {
    flex: 100% !important;
    flex-direction: column;
    width: 100% !important
}

.header-display-desktop {
    flex-direction: column
}

.tweak-fixed-header .header .header-announcement-bar-wrapper {
    padding-left: 0;
    padding-right: 0
}

.header-nav {
    width: 103.2%;
    border-top: 1px solid #000;
    padding-top: 0px;
    padding-left: .7vw !important;
    border-bottom: 1px solid #000 !important
}

div.header-nav-item {
    padding-left: 1.5vw !important;
    padding-right: 1.5vw !important;
}
div.header-display-desktop a.btn {
    position: absolute;
    right: 0;
    top: calc(~"50% - 20px")
}

.header-actions.header-actions--left {
    position: absolute;
    left:  0;
    top:  50%;
}
}

image.thumb.png.cd5df6788518dd75dcc2d16075f5790b.png

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!)

Posted
22 hours ago, karamickell5 said:

@tuanphan Thanks! Can you fill in that section with a light gray now so it looks more like this:

https://thesixpence.com/ 

You mean add a background color for fullwidth nav?

You can change this line

.header-nav {
    width: 103.2%;
    border-top: 1px solid #000;
    padding-top: 0px;
    padding-left: .7vw !important;
    border-bottom: 1px solid #000 !important
}

to this

.header-nav {
    width: 103.2%;
    border-top: 1px solid #000;
    padding-top: 0px;
    padding-left: .7vw !important;
    border-bottom: 1px solid #000 !important;
	background-color: #f3eeea;
}

 

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!)

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.