Jump to content

How to make navigation appear under logo in mobile view?

Recommended Posts

Posted

Hello! I would like my navigation pages to appear beneath my logo. It works in ‘desktop view’ but when I switch to ‘mobile view’ my navigation pages are put into a menu on the side. I want them to stay in the middle under my logo. Can anyone help with some custom CSS? 
I have attached an image of what the issue is 🙂 image.thumb.jpg.e676a7e99e8219689bf72f04551aae38.jpgimage.thumb.jpg.544b0d61455f5bce47de4af352720372.jpg

  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
5 hours ago, Isha08 said:

Hello! I would like my navigation pages to appear beneath my logo. It works in ‘desktop view’ but when I switch to ‘mobile view’ my navigation pages are put into a menu on the side. I want them to stay in the middle under my logo. Can anyone help with some custom CSS? 
I have attached an image of what the issue is 🙂 image.thumb.jpg.e676a7e99e8219689bf72f04551aae38.jpgimage.thumb.jpg.544b0d61455f5bce47de4af352720372.jpg

What is the website URL?

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.


 

Posted

Use this CSS code

@media screen and (max-width: 991px) {
    .header-layout-nav-center .header-title {
        max-width:70px
    }

    .header-display-desktop {
        display: flex !important
    }

    .header-display-mobile {
        display: none
    }

    .header-burger {
        display: none
    }

    .header-nav {
        display: flex !important
    }

    .header-nav {
        display: flex !important;
        flex: 70% !important;
        justify-content: center
    }

    .showOnDesktop .header-actions-action.header-actions-action--cart {
        display: none
    }

    nav {
        flex-wrap: nowrap !important
    }

    nav a {
        font-size: 10px;
        margin-left: 10px;
        margin-right: 10px
    }

    .header-title-logo {
        text-align: center
    }
}

 

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!)

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.