Jump to content

Make last menu item a button - 7.1

Recommended Posts

Site URL: https://www.chalkrestaurants.com/

Hi, I've tried various bits of css suggested in related questions on here but no joy.

I want to turn the last item (Book Now) in the navigation on my site into a square CTA button like in the footer. Can anyone help with the right css to do this?

Thanks in advance.

Edited by PacoJones
Site URL duplicated.
Link to comment
1 hour ago, PacoJones said:

Site URL: https://www.chalkrestaurants.com/

Hi, I've tried various bits of css suggested in related questions on here but no joy.

I want to turn the last item (Book Now) in the navigation on my site into a square CTA button like in the footer. Can anyone help with the right css to do this?

Thanks in advance.

try

.header-nav-list .header-nav-item:last-child a {
    color: #283e2a;
    border-color: #283e2a;
    background: #283e2a;
    border-width: 2px;
    border-style: solid;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    line-height: normal;
    padding: 1.3rem 2.171rem;
    -webkit-transition: 0.1s background-color linear, 0.1s color linear;
    -moz-transition: 0.1s background-color linear, 0.1s color linear;
    -o-transition: 0.1s background-color linear, 0.1s color linear;
    transition: 0.1s background-color linear, 0.1s color linear;
}
.header-nav-list .header-nav-item:last-child a:hover {
    background: #e1ccbe;
    border-color: #e1ccbe;
    color: #283e2a;
}
.header-nav-list {
    align-items: center;
}

image.thumb.png.02a35ee576b3f46556c0f16d7326b318.png

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
1 hour ago, bangank36 said:

try



.header-nav-list .header-nav-item:last-child a {
    color: #283e2a;
    border-color: #283e2a;
    background: #283e2a;
    border-width: 2px;
    border-style: solid;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    line-height: normal;
    padding: 1.3rem 2.171rem;
    -webkit-transition: 0.1s background-color linear, 0.1s color linear;
    -moz-transition: 0.1s background-color linear, 0.1s color linear;
    -o-transition: 0.1s background-color linear, 0.1s color linear;
    transition: 0.1s background-color linear, 0.1s color linear;
}
.header-nav-list .header-nav-item:last-child a:hover {
    background: #e1ccbe;
    border-color: #e1ccbe;
    color: #283e2a;
}
.header-nav-list {
    align-items: center;
}

image.thumb.png.02a35ee576b3f46556c0f16d7326b318.png

Hi BaNgan,

Thanks - I added your code to the Custom CSS but nothing changes. I've left the code in place in case that helps see why it isn't working.

Edit - there was a Syntax issue with some custom css added previously, I've fixed it and now the changes are showing.

Thank you!

Edited by PacoJones
Link to comment
  • 9 months later...
On 2/25/2022 at 7:41 PM, amberv98 said:

Hi @tuanphan, I managed to make the last menu item a button. But I don't like the fact that it is underlined when you hover over it. Is there any way to remove that underline only at the last menu item?

Thanks in advance!

What is access password?

https://www.atelierroger.eu/

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.