Jump to content

Template Marta : From horizontal to vertical navigation menu

Recommended Posts

  • Replies 17
  • Views 3.6k
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
  • 2 weeks later...
On 2/5/2020 at 9:17 AM, tuanphan said:

Can you share link to your site?

 

On 12/8/2019 at 11:10 AM, tuanphan said:

@moretrobin Add to Home > Design > Custom CSS


.Header-nav-inner {
    height: unset !important;
    width: unset !important;
    display: flex !important;
    flex-direction: column;
}

 

I tried with this code but it didn't work.  what should I do after adding that code and saving in custom css page? 

Link to comment
  • 1 year later...
10 hours ago, beachtree said:

I'm having the same issue.  here is the link to my site - https://www.johndavidlevy.com/

Add to Design > Custom CSS

/* vertical menu */
ul.cf {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

 

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
  • 3 weeks later...
On 6/22/2021 at 11:13 PM, hannaleejewelry said:

Hello, I am also trying to get this vertical navigation but the codes listed here wont work for me. My site link is https://hannaleejewelry.com/

Add to Design > Custom CSS

/* Vertical nav */
.header-nav-list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

 

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
On 6/23/2021 at 9:38 PM, tuanphan said:

Add to Design > Custom CSS

/* Vertical nav */
.header-nav-list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

 

Thank you!! This worked but there is a lot of overhang on some of the navigation titles when selected. Is this fixable? 

Screen Shot 2021-07-01 at 5.32.19 PM.png

Link to comment
On 7/2/2021 at 6:33 AM, hannaleejewelry said:

Thank you!! This worked but there is a lot of overhang on some of the navigation titles when selected. Is this fixable? 

Screen Shot 2021-07-01 at 5.32.19 PM.png

Add to Custom CSS

/* nav active underline */
div.header-nav-item--active a {
    background-image: none !important;
}
div.header-nav-item--active a:after {
    content: "";
    background-color: black;
    height: 1px;
    width: 100%;
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
}
div.header-nav-item--active a {
    display: inline-block;
    position: relative;
}

 

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
On 7/3/2021 at 12:23 AM, tuanphan said:

Add to Custom CSS

/* nav active underline */
div.header-nav-item--active a {
    background-image: none !important;
}
div.header-nav-item--active a:after {
    content: "";
    background-color: black;
    height: 1px;
    width: 100%;
    display: inline-block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 999;
}
div.header-nav-item--active a {
    display: inline-block;
    position: relative;
}

 

This didn't work. The navigation went back to horizontal format.

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.