I´m coding a CSS menu for WordPress and I have this stupid problem:
I give the first ul a background image and that same image shows also on every sub menus, which I don´t want.
How can I tell the first ul that the background image is only for that ul? And not for the following sub menus.
You need to change the selector for ul where you want the image to appear.
You CSS code should look something like
Assuming nav is the class attached to immediate parent of desired ul.