0

enter image description here

How to change vertical menu background color on hover in Magento 2 I want like this.

Aasim Goriya
5,4622 gold badges30 silver badges54 bronze badges
asked Jun 23, 2016 at 14:07

1 Answer 1

0

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)

answered Jun 23, 2016 at 14:12
5
  • I tried that but it's not useful Commented Jun 23, 2016 at 14:19
  • Can you see what element the style is being applied to in Firebug? Commented Jun 23, 2016 at 14:25
  • I tried all ways but still not getting Commented Jun 24, 2016 at 13:16
  • Have you tried inspecting the <li class="category-menu dropdown"></li> Generally background-color is applied there. Commented Jun 24, 2016 at 13:32
  • I tried that also. Commented Jun 27, 2016 at 9:19

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.