earthwindflowermoon Posted January 19, 2022 Share Posted January 19, 2022 Site URL: https://mokshatransformation.squarespace.com/ Hello there, I am using the below code to create an underline effect on my main navigation.... (site password is: Moksha) // Center Nav Line // @media all and (min-width:770px){ header nav a{ display: inline-block; float: none; } header nav a:hover:after{ transform: scaleX(1); } header nav a:after { display:block; content: ''; border-bottom: solid 1px #cda05a; padding: .4em; transform: scaleX(0); transition: transform 250ms ease-in-out; z-index: 999; } } It works great until you get to the page titles within a folder. The width of this underline appears wider than the wording. Is there a way for this to be corrected? Just so the underline width is the same width as per the wording. Many thanks in advance for any help. Link to comment
tuanphan Posted January 20, 2022 Share Posted January 20, 2022 Add this CSS /* Fix folder underline */ a.Header-nav-folder-item:hover { display: inline-block; } earthwindflowermoon 1 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
earthwindflowermoon Posted January 21, 2022 Author Share Posted January 21, 2022 Genius! Thank you!! 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