i have a nested unorderd list i.e parent-child. I have styling on the parent that is activated when hovered on with a mouse. This works fine.
However, I want this styling to remain when a child list item is hovered on too.
Is there anyway of traversing backwards so that a child list item knows its parent and therefore puts the styling on the parent?