In a previous question I asked (and later worked out) how to style sub menus, I want to expand on that with another question related to styling sub-menus.

I have hit an issue were if the parent is the selected page all child pages pick up the same styling, I believe this is because the current-menu-item class gets added to the parent li.

If a child element is selected only the child is highlighted (which is correct)

Has anyone encountered this before? What is the best way to only have the selected page highlighted and not the child elements of that page?

As requested, here is the CSS that is being called to highlight the child menu.

.current-page a, .current-menu-item a {
    background-color: #EE8833;
}



Question: Why the use of resistors when pulling something up or down?
Answer: Another reason is that it makes it very easy to alter the input - just connect it to the positive supply if it is pulled down, for instance, rather than rewiring the connection. A couple of pins for a jumper are all that is required. A typical example is pin P0.14 on an NXP ARM chip, which determines whether it boots from a serial input or from internal flash memory.