Shopify themes, liquid, logos, and UX
I'd like to have a box around the word in the navigation bar when the mouse cursor hovers over it instead of a single dash underneath it
Solved! Go to the solution
This is an accepted solution.
Sure. Takes time for me to find the underline selector..😆
ul.list-menu.list-menu--inline span:hover {
padding: 5px;
}
You can add this one on the first code that I give they have same selector, only the padding: 5px
.header__menu-item:hover span {
text-decoration: none;
text-underline-offset: 0rem;
}
I hope it help.
Hi @corneliorrr ,
Would you mind to share your URL website with password?
Thanks!
Thank you for the information.
I understand that you want the box instead of underline when hover.
Try this code.
ul.list-menu.list-menu--inline span:hover {
border: 1px solid black;
}
span.header__active-menu-item {
text-decoration: none;
}
I hope it help.
Ah, thank you! And would it also be possible to enlarge the box a little and then remove the original line
This is an accepted solution.
Sure. Takes time for me to find the underline selector..😆
ul.list-menu.list-menu--inline span:hover {
padding: 5px;
}
You can add this one on the first code that I give they have same selector, only the padding: 5px
.header__menu-item:hover span {
text-decoration: none;
text-underline-offset: 0rem;
}
I hope it help.
Perfect, you helped me a lot! Thank you!
Welcome, Happy to help. 😊
User | RANK |
---|---|
163 | |
141 | |
70 | |
66 | |
55 |
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023