How to change vertical menu background color on hover in Magento 2 I want like this.
1 Answer
Right click and inspect the element. Use chrome developer or your browsers equivalent. Look in the box on the far right. You'll see :hov, click on it and you'll be able to select the css hover/focus/active/visited styles. Then just copy the element + :hover and add your style to your custom.css file.
<vendor>/<theme>/web/css/custom.css(or whatever you call your css file)
-
-
Can you see what element the style is being applied to in Firebug? Commented Jun 23, 2016 at 14:25
-
-
Have you tried inspecting the
<li class="category-menu dropdown"></li>
Generally background-color is applied there. Commented Jun 24, 2016 at 13:32 -