Jump to content

Top Justification of Navigation Menu

Go to solution Solved by tuanphan,

Recommended Posts

Hello,

I'm using the header to display a large logo which brings my navigation menu to the center of the wide header. I'd like to justify this menu near the top of the header. Is there code that I can use for this?

Thank you!

Link to comment
  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

I poked around and found that this code works to accomplish what I want to do but I'm not sure if it's the right way to go about it.

 

.header-nav { margin-top: -150px; }

.header-actions {margin-top: -150px;}

Link to comment
  • Solution
On 4/2/2024 at 11:44 PM, JWest2 said:

I poked around and found that this code works to accomplish what I want to do but I'm not sure if it's the right way to go about it.

 

.header-nav { margin-top: -150px; }

.header-actions {margin-top: -150px;}

I think the code, can cause problems on some screen size, you can check on some screen sizes, to see if it has any problems or not.

Use this new code instead

.header-display-desktop, .header-title-nav-wrapper {
    align-items: flex-start !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!)

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.