-
☆ A M B ☆
- 24,524 Posts
Each selector adds a value to the total value of the rule. So you need to add more specific selectors to the secondary elements.
#sidebar ul li.self ul li a { color: #...; }
http://css-tricks.com/specifics-on-css-specificity/
Hi Susan
Many thanks for your answer. Your tip solved my problem.
Does this mean that I don’t have to specify an extra rule for the inner ul, as I did with the ul.subsidemenu? The ul.subsidemenu definition is exactly the same as the ul.sidemenu.
Many thanks for the clarification
Kilian
-
☆ A M B ☆
- 24,524 Posts
the inner stuff will inherit the settings for the outer stuff. So you only need to set specific settings when you want the inner stuff to be different than the outer stuff.