robfeltrin Posted November 10, 2023 Posted November 10, 2023 Hello! I've used this code to replace the burger menu with text, but I would like the text to change colour on hover. I've tried a few different things but can't seem to figure it out. Current code: // Mobile Menu Text // .burger-box:after { content: "Menu ="; text-align: right; font-size: 16px; color: #000; display: block !important; } .burger-box { width: 60px !important; height: 25px !important; } .burger-box div { display: none; } Any idea how to add hover effect to the text? https://violin-halibut-2csa.squarespace.com/ mmmarchitects Thanks!
Solution Web_Solutions Posted November 10, 2023 Solution Posted November 10, 2023 9 minutes ago, robfeltrin said: Hello! I've used this code to replace the burger menu with text, but I would like the text to change colour on hover. I've tried a few different things but can't seem to figure it out. Current code: // Mobile Menu Text // .burger-box:after { content: "Menu ="; text-align: right; font-size: 16px; color: #000; display: block !important; } .burger-box { width: 60px !important; height: 25px !important; } .burger-box div { display: none; } Any idea how to add hover effect to the text? https://violin-halibut-2csa.squarespace.com/ mmmarchitects Thanks! Here is the code .burger-box:hover:after { color: red !important; } Kobir 1 If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks MD Rofik Website Designer and Digital Marketer ☕Am I helpful? Want to offer me a coffee? ✉ Send me a message if needed any help. I'll try to reply as soon as possible.
robfeltrin Posted November 10, 2023 Author Posted November 10, 2023 10 minutes ago, Web_Solutions said: Here is the code .burger-box:hover:after { color: red !important; } Worked like a charm! Thank you!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment