Jump to content

Centre alignment site header, including logo and button

Recommended Posts

Site URL: https://www.parviz.ca

I would like to achieve the site header as seen on Apple.com website. The navigation links, logo and buttons should be aligned to the centre of the page. I've attached a photo of how my current header looks like: logo is on the far left of the header and the Book Appointment button is on the far right. The end result I would like to achieve is identical to the site header as seen on apple.com

 

Thanks

Screen Shot 2021-06-08 at 12.33.57 PM.png

Link to comment
  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi. Try adding to Design > Custom CSS

/* Align center header */
.header-title {
    text-align: right;
}
.header-actions.header-actions--right {
    justify-content: flex-start;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
15 hours ago, tuanphan said:

Hi. Try adding to Design > Custom CSS


/* Align center header */
.header-title {
    text-align: right;
}
.header-actions.header-actions--right {
    justify-content: flex-start;
}

 

It's working, however I would prefer if the navigation links are displayed all on one line. Currently, "Home Organization Products" is displayed on a second line

Screen Shot 2021-06-10 at 11.56.56 AM.png

Link to comment

Try new code

/* Align center header */
.header-title {
    text-align: right;
}
.header-actions.header-actions--right {
    justify-content: flex-start;
}

nav.header-nav-list {
    flex-wrap: nowrap !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
9 hours ago, tuanphan said:

Try new code


/* Align center header */
.header-title {
    text-align: right;
}
.header-actions.header-actions--right {
    justify-content: flex-start;
}

nav.header-nav-list {
    flex-wrap: nowrap !important;
}

 

Seems to be working, thank you.

 

Here is the full code:

Quote

 

/* Align center header */
.header-title {
    text-align: right;
}
.header-actions.header-actions--right {
    justify-content: flex-start;
}

nav.header-nav-list {
    flex-wrap: nowrap !important;
}
.header-title-nav-wrapper {
    flex: 1 0 82% !important;
}
.header-nav {
  width: 100% !important;
  flex: 1 1 100% !important;
}

 

 

Link to comment
  • 1 year later...

Hi @tuanphan, I wonder if this is  a similar or different question.

I'm trying to get my site header and nav to look like the attached screenshot, but when I put the code in, it's not putting the navigation under the "logo". How would I make the text-logo large and put the navigation underneath? Like in this picture.

Screen Shot 2022-10-23 at 10.59.00 AM.png

Link to comment
On 10/24/2022 at 12:59 AM, Dafne said:

Hi @tuanphan, I wonder if this is  a similar or different question.

I'm trying to get my site header and nav to look like the attached screenshot, but when I put the code in, it's not putting the navigation under the "logo". How would I make the text-logo large and put the navigation underneath? Like in this picture.

Screen Shot 2022-10-23 at 10.59.00 AM.png

Can you share site url?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.