On Wed, 2005-09-14 at 16:56 +0800, Martin Smales wrote:

> Is there a way to style the td element with a background colour if an
> <a> element has a active_menu id?

No, CSS Selectors don't allow this. They can only step down, not up.

You could do the equivalent in JavaScript, or... well, a long term
strategy might be lobby browser makers to support XPath or something. So
basically I don't have any good advice for you.


.Matthew Cruickshank
http://holloway.co.nz/

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to