Jump to content

Centralize Header and Link Titles

Go to solution Solved by Web_Solutions,

Recommended Posts

Hello,

I am trying to centralize my header on Squarespace. I want the logo to remain in the center, and I want to split the link titles (there are four) and put two on each side.  I want to also space them out more than the default setting.

Here is what my header currently looks like: Screenshot2023-11-30at2_37_56PM.thumb.png.9ccc248be3404f1494f48730d16df0e8.png

Here is what I want it to look like (it’s Photoshopped):

Screenshot1a.thumb.jpg.96f99f6b0a3a267b72111b6e186f17d2.jpg

Site link: http://thegoalside.com

If anyone has a CSS code to achieve this, it would be greatly appreciated.

Best,

Ben Rowe

Link to comment
  • Solution
28 minutes ago, benrowe said:

Hello,

I am trying to centralize my header on Squarespace. I want the logo to remain in the center, and I want to split the link titles (there are four) and put two on each side.  I want to also space them out more than the default setting.

Here is what my header currently looks like: Screenshot2023-11-30at2_37_56PM.thumb.png.9ccc248be3404f1494f48730d16df0e8.png

Here is what I want it to look like (it’s Photoshopped):

Screenshot1a.thumb.jpg.96f99f6b0a3a267b72111b6e186f17d2.jpg

Site link: http://thegoalside.com

If anyone has a CSS code to achieve this, it would be greatly appreciated.

Best,

Ben Rowe

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.header-display-desktop {
  min-height: 90px;
  position: relative;
  .header-title-nav-wrapper {
    flex: 0 0 100% !important;
    .header-nav{
      flex: 0 0 100% !important;
      .header-nav-list {
        width: 100%
      }
      .header-nav-item:nth-child(3) {
        margin-left: auto !important;
      }
    }
    .header-title {
      position: absolute;
      left: 50%;
      bottom: 50%;
      transform: translate(-50%, 50%) !important;
      z-index: 999999;
    }
  }
}

 

Screenshot_458.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment

Hello,

Thank you very much for your reply. I now have the link titles split into two on each side.

Now, would it be possible to space these out similar to how they looked in my Photoshop image? I would like them to be closer to the center of the header, if possible. I'm wondering if there are some numbers that we can add to the custom CSS to transform and space them out like this. Then, I can adjust the numbers as needed. Thanks!

Best,
Ben Rowe

Link to comment
5 minutes ago, benrowe said:

Hello,

Thank you very much for your reply. I now have the link titles split into two on each side.

Now, would it be possible to space these out similar to how they looked in my Photoshop image? I would like them to be closer to the center of the header, if possible. I'm wondering if there are some numbers that we can add to the custom CSS to transform and space them out like this. Then, I can adjust the numbers as needed. Thanks!

Best,
Ben Rowe

Replace the previous code with the code below. And you can increases the space between nav item by editing your header. See images

.header-display-desktop {
  min-height: 90px;
  position: relative;
  .header-title-nav-wrapper {
    flex: 0 0 100% !important;
    .header-nav{
      flex: 0 0 100% !important;
      .header-nav-list {
        width: 100%;
        max-width: 1050px;
        display: flex !important;
        margin: 0 auto !important;
      }
      .header-nav-item:nth-child(3) {
        margin-left: auto !important;
      }
    }
    .header-title {
      position: absolute;
      left: 50%;
      bottom: 50%;
      transform: translate(-50%, 50%) !important;
      z-index: 999999;
    }
  }
}

 

Screenshot_451.png

Screenshot_459.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.