Jump to content

[Share] Stack Navigation Vertically

Recommended Posts

Posted

You can use these CSS code to make Navigation stack vertically.

#1. Stack Navigation on Right side

nav.header-nav-list {
    flex-direction: column;
}

image.png.8140f6da7ab4c03853a1737c01acbfbd.png

result

image.png.5f42902eae02c645908c5839b8da799f.png

#2. Stack Navigation on Left Side

div.header-display-desktop {
nav.header-nav-list {
    flex-direction: column;
}
div.header-title-nav-wrapper {
    flex-direction:row-reverse;
}
.header-nav {
    text-align: left !important;
    padding: 0px !important;
}
nav.header-nav-list div {
    margin-left: 0px !important;
}}

image.png.7558007a7bb2522bd053657448e90bf0.png

#3. Stack Navigation under Logo/Site Title

div.header-display-desktop {
nav.header-nav-list {
    flex-direction: column;
}
div.header-title-nav-wrapper {
    flex-direction:column;
}
.header-nav {
    text-align: center !important;
    padding: 0px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
nav.header-nav-list div {
    margin-left: 0px !important;
}}

image.png.04fdebe07332fc2acb5f231442f55f42.png

#4. Stack Navigation above Logo/Site Title

div.header-display-desktop {
nav.header-nav-list {
    flex-direction: column;
}
div.header-title-nav-wrapper {
    flex-direction:column-reverse;
}
.header-nav {
    text-align: center !important;
    padding: 0px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
nav.header-nav-list div {
    margin-left: 0px !important;
}}

image.png.8aafe3d1685f03800559cbe8b7e108d5.png

#5. Stack Navigation in bottom right of site

div.header-display-desktop {
nav.header-nav-list {
    flex-direction: column;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}}

image.png.5504bdeb185807edd2d7cd110fa5b3f3.png

#6. Stack Navigation in bottom left of site

div.header-display-desktop {
nav.header-nav-list {
    flex-direction: column;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}
nav.header-nav-list * {
    text-align: left !important;
    margin: unset !important;
}}

image.png.aa38b48217f2e7cea82b2ce74d666e8b.png

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

  • Replies 0
  • Views 47
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.