I want the background of each of my menu list items to change depending on it's class, it's class equals it's page alias.
Rather than type in the css individually as it will change when the pages change, is there a way of dynamically writing the css? I'm thinking of something along the lines of:
Code: Select all
for each child of current page class name equals child's page alias