Jump to content

Header submenu lineup

Recommended Posts

Site URL: https://www.carstenfleck.com/

I want a submenu of the header line up with the left, with the beginning of the word Projects but at the same time want to keep the header aligned to the right. To line up the submenu with the left is by default only possible though, if I align the header to the the left. Is there a coding solution to this?

Best,

Carsten

First image header aligned to the left, submenu also aligned to the left. Second image header aligned to the right, submenu also aligned to the right. Would like to find a way to align header to the right and submenu to the left. 🙂

CleanShot 2022-07-31 at 14.06.41@2x.png

CleanShot 2022-07-31 at 14.05.13@2x.png

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Try adding to Design > Custom CSS

.header-layout-nav-left .header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

 

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

Anybody any idea how this could work? Thanx again tuanphan for your help but I wasn't able to make it work. The submenu still doesn't line up to the left I mean it doesn't start directly under Projects and lines up to the right.

Best,

Carsten

Link to comment

Try this new code

div.header-nav-folder-content {
    left: 0 !important;
    text-align: left !important;
    padding-left: 0 !important;
}
div.header-nav-item {
    position: relative !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

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.