Jump to content

Button in Navigation Bar

Go to solution Solved by tuanphan,

Recommended Posts

I'm trying to turn the last item (Volunteer at Art's House) in the navigation bar into a button. The site uses a Montauk template and version 7. I used the code from https://www.bigcatcreative.com/blog/header-navigation-button-squarespace for the Avenue Template (that blog post doesn't have code for Montauk), and it looks great with one exception. The top of the button seems to be aligned with the rest of the navigation items, which makes the text somewhat offset. Is there any way to align the button text with the rest of it?

image.thumb.png.62d87a11bc0e4eb81dd113cb8181d9f9.png

Link to comment
  • Solution
Posted (edited)

You can use this CSS

nav>ul>li:last-child>a {
    background-color: black;
    color: white !important;
    padding: 10px 20px;
}
nav.main-nav>ul {
    display: flex;
    align-items: center;
}

image.thumb.png.20c391c44be2d9974db5e78bd1e0c98a.png

Edited by tuanphan

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 3 months later...

Unfortunately it does't work with Avenue template, Squarespace 7.0. Could you help me out?

Das Meer ist blau. is a brand design agency based in Hamburg, since 2014. Our range of services includes: - full service campaign - corporate design | Brand-design - classic advertising - web design - magazine design - packaging design - merchandising - development of pos materials

Link to comment
On 10/29/2023 at 12:29 AM, dasMeerIstBlau said:

Unfortunately it does't work with Avenue template, Squarespace 7.0. Could you help me out?

With Avenue, use this code

.main-nav>ul>li:last-child>a {
    background-color: black;
    color: white !important;
    padding: 10px 20px !important;
}

image.thumb.png.1665d482240eb973d84c0de7e74ae819.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 10/30/2023 at 10:16 AM, tuanphan said:

I'm sorry, it does't work on our Website Prinzenart, Squarespace7.0, Avenue

 

Bildschirmfoto 2023-11-03 um 16.31.25.png

Bildschirmfoto 2023-11-03 um 16.31.30.png

Das Meer ist blau. is a brand design agency based in Hamburg, since 2014. Our range of services includes: - full service campaign - corporate design | Brand-design - classic advertising - web design - magazine design - packaging design - merchandising - development of pos materials

Link to comment
  • 2 weeks later...
On 11/16/2023 at 4:52 PM, dasMeerIstBlau said:

Use this code

.main-nav>ul>li:nth-last-child(2)>a {
    background-color: black;
    color: white !important;
    padding: 10px 20px !important;
    position: relative;
    top: 50px;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.