app4qp Posted June 10 Posted June 10 Can someone help me update my CSS so that when I hover over the menu navigation panel on my mobile, the underline is only under the words, and not the entire screen? This is my current code, and this is what it looks like: .header-menu-nav-item { position: relative; } .header-menu-nav-item::before { content: ""; position: absolute; display: inline-block; width: 100%; height: 3px; bottom: 0; left: 0; background-color: red; transform: scaleX(0); transition: transform 0.3s ease; } .header-menu-nav-item:not(.header-menu-nav-item--active):hover::before { transform: scaleX(1); }
tuanphan Posted June 12 Posted June 12 Can you share site url? We can check easier. 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment