Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Boxing only active tab in navigation


Question

Site URL: https://blenny-daffodil-5dzg.squarespace.com/

Password : ProdigySite2021

Currently the nav works where the link you are currently on is coloured but additionally I want a box around only the currently selected tab.

I am running into more issues I need fixed such as the colour only being there when at the top of the page. And on certain laptops the text doesn't stay on one line. I was trying the buttons style for the nav but it made 3 rows of buttons for example. How do I ensure text stays on one line no matter the laptop (aside from mobile devices).

Link to comment

6 answers to this question

Recommended Posts

  • 1
7 hours ago, hudson_lee02 said:

Site URL: https://blenny-daffodil-5dzg.squarespace.com/

Password : ProdigySite2021

Currently the nav works where the link you are currently on is coloured but additionally I want a box around only the currently selected tab.

I am running into more issues I need fixed such as the colour only being there when at the top of the page. And on certain laptops the text doesn't stay on one line. I was trying the buttons style for the nav but it made 3 rows of buttons for example. How do I ensure text stays on one line no matter the laptop (aside from mobile devices).

You mean like this

.Header-nav-item--active {
    color: #aadc14 !important;
    border: 1px solid #aadc14;
    box-sizing: border-box;
    padding: 0.1em !important;
}
.scrollNav .Header-nav-item--active {
  border-color: #000;
}

 

image.png

Edited by bangank36

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Portfolio hover Replace Link Style
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 0
18 hours ago, hudson_lee02 said:

Yes! Thank you so much it looks great!

Is there any way to keep the colour and box when you scroll down the page? Currently they are only there when at the top of a page.

It looks like you fixed this?

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

Link to comment
  • 0
On 7/27/2021 at 9:49 PM, hudson_lee02 said:

The box stays but if possible I also want the colour to stay when you scroll down as well.

Use this code

header.Header .Header-nav .Header-nav-inner .Header-nav-item--active {
    color: #aadc14 !important;
    border: 1px solid #aadc14 !important;
    box-sizing: border-box;
    padding: .1em !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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...