gullbekken Posted September 10 Share Posted September 10 https://finnskogutstillingen.squarespace.com/ password: finnskogutstillingen24 I managed to style hover underline thickness and offset, but I also want the active link to have the same style.... What am I doing wrong? .header-nav-item a:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; } .header-nav-item a:after { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; } Link to comment
Lesum Posted September 11 Share Posted September 11 @gullbekken You can add this code snippet to remove the underline on the active link: .header-nav-item--active a { background-image: none !important; } Now you can add this code snippet to display the same style on the active link: .header-nav-item--active a { text-decoration: underline !important; text-underline-offset: 8px; text-decoration-thickness: 3px; } gullbekken 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Lesum Posted September 11 Share Posted September 11 (edited) @gullbekken It should have worked. Not sure where or how you added the code. I don't see the code being added to your site. Did you add the code under Custom CSS? Edited September 11 by Lesum If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
gullbekken Posted September 11 Author Share Posted September 11 @Lesum Yup, added in the custom css. Link to comment
Solution Lesum Posted September 11 Solution Share Posted September 11 @gullbekken Your previous code is conflicting with the code I provided. Referring to the screenshot you shared, could you please add !important after `8px` on line 14 and `3px` on line 15 in the code? So line 14 and 15 should look like this: text-underline-offset: 8px !important; text-decoration-thickness: 3px !important; tuanphan 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
gullbekken Posted September 11 Author Share Posted September 11 @Lesum The underline is still thin on active. Link to comment
Lesum Posted September 11 Share Posted September 11 @gullbekken Please check the live site or reload your Squarespace editor. If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
gullbekken Posted September 11 Author Share Posted September 11 @Lesum aaah sorry, thought the changes happened live. Thank you! Lesum 1 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