KA.
KA.

Reputation: 4484

css: target a class which is inside a same class

I am currently working on a Wordpress project. It has a 3 level menu.

.submenu has to be hidden until its on the same page. Now I have to hide .submenu, which is inside submeu.

How do I target this?

I have to target #mainmenu > . submenu > .submenu

Upvotes: 0

Views: 91

Answers (1)

2C-B
2C-B

Reputation: 3457

Exactly like that #mainmenu .submenu .submenu.

Upvotes: 2

Related Questions