I would like to select the <li> element that is a parent (which immediately precedes the anchor tag, if that helps...) according to some attribute of the anchor tag.
i.e. my css would be something like
li < a.active {
attribute: setting;
}
Obviously there are ways of doing this with javascript but I'm hoping that there is some sort of workaround that exists native to CSS 2
Any ideas?
[Edit:] The menu that I am trying to style is being spewed out by a cms so I can't move the active tag to the li element... (unless I theme the menu creation module which I'd rather not do)