Multiple nested css link attributes
-
I don’t particularly ACTUALLY have an example that’s public, but I’ll try my best to be descriptive.
I have two menus, a top menu, and a bottom menu. When you hover over it, it goes from black to an orange color, and it remains orange when it’s the current_page_item. The bottom menu’s first item has a custom css atribute of “first_page_item” so I can give the top left end of it a rounded corner.
This is working with everything but when it is the current_page_item, when so, it is not rounded.
So I’m trying to find a way to get the css to understand that when it is both current_page_item and first_page_item it should be rounded, but only then (hover and active are doing just fine).
What I’m trying to do to fix this is nest it like so:
`.menu2 li .first_page_item .current_page_item { example css etc }’But to no avail. Any thoughts?
The topic ‘Multiple nested css link attributes’ is closed to new replies.