oskarfishwick Posted January 17, 2020 Share Posted January 17, 2020 Hello, I have added a underline when i hover over my menu items. The code being .Header-nav-item::after { content: ''; background: #000; height: 2px; width: 0; display: block; margin-top: 2px !important; transition: width 1s; margin: 0 auto; } .Header-nav-item:hover::after { width: 100%; } Coming from https://thirtyeightvisuals.com/blog/hover-mode-menu-items But as i have made my last item on the nav as a button, i dont want the underlining to appear when i hover on that. Could someone give me a code to exclude this button from the underlining. Thank you! Link to comment
paul2009 Posted January 17, 2020 Share Posted January 17, 2020 You've forgotten to include a working link to your site. To help, we need to see the issue first hand. If the site isn't live, we need you to set a password in the visibility settings and tell us what it is. About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
oskarfishwick Posted January 17, 2020 Author Share Posted January 17, 2020 Oh im sorry. www.imexgolvprodukter.squarespace.com pssword: 3302 Link to comment
tuanphan Posted January 21, 2020 Share Posted January 21, 2020 On 1/17/2020 at 6:17 PM, oskarfishwick said: Oh im sorry. www.imexgolvprodukter.squarespace.com pssword: 3302 I see you fixed? 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
oskarfishwick Posted January 27, 2020 Author Share Posted January 27, 2020 No its not fixed. Link to comment
tuanphan Posted January 28, 2020 Share Posted January 28, 2020 On 1/27/2020 at 1:51 PM, oskarfishwick said: No its not fixed. your code .Header-nav-item::after { content: ''; background: #000; height: 2px; width: 0; display: block; margin-top: 2px !important; transition: width 1s; margin: 0 auto; } .Header-nav-item:hover::after { width: 100%; } change it to .Header-nav-item:not(:last-child)::after { content: ''; background: #000; height: 2px; width: 0; display: block; margin-top: 2px !important; transition: width 1s; margin: 0 auto } .Header-nav-item:not(:last-child):hover::after { width: 100% } 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.