CSS(3) has descendent
selectors, e.g. td em {color: red};
, but href="https://stackoverflow.com/questions/1251768/css-parent-ancestor-selector">no
ancestor selector, apparently.
So,
what should I do instead of something like td {border: 1pt solid red}
? i.e., how can I set a style on ancestors of some (X)HTML
em;
element?
Note:
- Javascript is not
relevant for the workaround, something XPath'y might
be.
No comments:
Post a Comment