Jump to content

Hiding nav bar on desktop moves logo

Recommended Posts

4 minutes ago, noahawaii said:

can you try to explain that better. You want the header hidden on desktop or the nav menu. Because it looks like the nav menu is hidden and the site title looks centered.

the nav menu visibility is currently hidden using visibility:hidden . the problem is when i put more than 3 items in the navigation bar, the header height starts to increase and i dont want that to happen, when i use display:none , the navigation bar disappears,  the header height is fine but the logo moves to the left and is not centered anymore

Link to comment
11 hours ago, AJPerformance said:

the nav menu visibility is currently hidden using visibility:hidden . the problem is when i put more than 3 items in the navigation bar, the header height starts to increase and i dont want that to happen, when i use display:none , the navigation bar disappears,  the header height is fine but the logo moves to the left and is not centered anymore

Try this.

.header-layout-branding-center .header-title {
    flex: none !important;
}

.header-title-logo {
    width: 50% !important;
}

You can also set your header height to something specific

.header {

    height: XX px !important;

}

 

Link to comment
9 hours ago, noahawaii said:

Try this.

.header-layout-branding-center .header-title {
    flex: none !important;
}

.header-title-logo {
    width: 50% !important;
}

You can also set your header height to something specific

.header {

    height: XX px !important;

}

 

Hi, thanks, it fixed the height but the logo appears on the left side of the screen now, i want it to appear in the center, i also changed the nav to display:none

Link to comment
On 4/30/2022 at 11:41 AM, AJPerformance said:

Hi, thanks, it fixed the height but the logo appears on the left side of the screen now, i want it to appear in the center, i also changed the nav to display:none

It looks like you figured it out?

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.