Hello.
I would like every .asset inside an li:last-child to be green.
However, inside the 3rd li, i would like that 3.1 and 3.2 to be red.
The same with 3.3.1, 3.3.2 and 3.3.3. Only 3.3.3 should be green.
These types of selectors can be really tricky to get, but you did the right thing by opening up a JSFiddle (I prefer Codepen :D ). What you’re looking for is something like this:
Thanks for the answer. It does what i need.
Could you please explain me why this solution only affects the last-child since all .asset are direct children of the li:last-child?