tracyhall Posted May 22, 2021 Share Posted May 22, 2021 Hi there, A client has asked for the active page underline in the nav bar to be coloured red (I'm using 7.1), but the text remain the same colour as the rest of the nav items. I have played around with CSS and thought I had figured it out, but when I went back into the site the next day the link was no longer red. Here is the code I tried: .header-nav-item--active a {text-decoration: underline color: red !important; } I feel like the issue may be with how I'm specifying underline as I'm trying to piece together advice by Googling answers and am not super confident with CSS. Any advice would be greatly appreciated. Thanks, Tracy Beyondspace 1 Link to comment
Beyondspace Posted May 22, 2021 Share Posted May 22, 2021 1 hour ago, tracyhall said: Hi there, A client has asked for the active page underline in the nav bar to be coloured red (I'm using 7.1), but the text remain the same colour as the rest of the nav items. I have played around with CSS and thought I had figured it out, but when I went back into the site the next day the link was no longer red. Here is the code I tried: .header-nav-item--active a {text-decoration: underline color: red !important; } I feel like the issue may be with how I'm specifying underline as I'm trying to piece together advice by Googling answers and am not super confident with CSS. Any advice would be greatly appreciated. Thanks, Tracy What is your site url tracyhall 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 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
tracyhall Posted May 22, 2021 Author Share Posted May 22, 2021 @bangank36 Site is: https://redstormdesign.squarespace.com/ Password: thcrsd Much appreciated 🙂 Thanks, Tracy Link to comment
Beyondspace Posted May 22, 2021 Share Posted May 22, 2021 2 hours ago, tracyhall said: Hi there, A client has asked for the active page underline in the nav bar to be coloured red (I'm using 7.1), but the text remain the same colour as the rest of the nav items. I have played around with CSS and thought I had figured it out, but when I went back into the site the next day the link was no longer red. Here is the code I tried: .header-nav-item--active a {text-decoration: underline color: red !important; } I feel like the issue may be with how I'm specifying underline as I'm trying to piece together advice by Googling answers and am not super confident with CSS. Any advice would be greatly appreciated. Thanks, Tracy Get rid of color line if you want the link text black .header-nav-item--active a { text-decoration: underline; color: red !important; border-bottom: 1px solid red !important; background-image: none !important; } tracyhall and noodles22 1 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 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
tracyhall Posted May 22, 2021 Author Share Posted May 22, 2021 @bangank36 Thank you so much, I can confirm this has worked! I really appreciate you sharing your time and expertise with me. Big thanks 🙂 Cheers, Tracy Beyondspace 1 Link to comment
noodles22 Posted June 23, 2021 Share Posted June 23, 2021 On 5/21/2021 at 8:25 PM, bangank36 said: Get rid of color line if you want the link text black .header-nav-item--active a { text-decoration: underline; color: red !important; border-bottom: 1px solid red !important; background-image: none !important; } How do I make it so I can add a hex color code for the border-bottom? Thanks, Link to comment
tuanphan Posted June 24, 2021 Share Posted June 24, 2021 16 hours ago, noodles22 said: How do I make it so I can add a hex color code for the border-bottom? Thanks, change red to color code, eg: #f0f0f0 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment