yoloyoli123 Posted February 18 Posted February 18 Hi There, I added a dot to the active nav item and when transferred to the mobile menu, the spacing gets messed up. Attached is a picture of what it looks like. Here is the code I am currently using: /* nav active */ //desktop dot on active .header-nav-item--active a:after { content: ""; display: inline-block; width: 15px; height: 15px; background-color: #ED1C24; text-align: center; margin: 0 auto; border-radius: 75%; } //mobile dot on active .header-menu-nav-item--active { content: ""; display: block; width: 15px; height: 15px; background-color: #ED1C24; border-radius: 75%; text-align: right; margin: 0 auto; } //desktop color on active .header-nav-item--active>a, .header-nav-folder-item--active>a, .header-menu-nav-item--active>a .header-menu-nav-item--active { background-image: none !important; color: #ED1C24 !important; } //mobile color on active div.container.header-menu-nav-item--active div { color: #ED1C24 !important; background-image: none !important; } /* nav active */ How can I fix this? Thanks in advanced! Website: https://vibraphone-rhombus-nh9r.squarespace.com/config/settings/website/site-availability Password: forum
Solution tuanphan Posted February 20 Solution Posted February 20 Add this CSS code under your code to fix problem on mobile .header-menu-nav-item--active { width: auto !important; background: unset !important; } .header-menu-nav-item--active div:before { content: ""; background-color: red; width: 15px; height: 15px; display: inline-block; border-radius: 50%; } 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!)
yoloyoli123 Posted February 20 Author Posted February 20 13 hours ago, tuanphan said: Add this CSS code under your code to fix problem on mobile tuanphan, you've done it again! thanks!! tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment