Need to differentiate an element based on it's subclasses
Posted: Fri May 12, 2017 8:18 pm
Hi,
I have an author template that has one element, and the css is supposed to trigger an action button based on the existence (or non-existence) of a subclass. For example my xml has:
<section class="level1 practice"> vs. <section class="level1">
I tried selecting with:
[class$="practice"] vs. [class$="level1"]
and
section[class~="level1"][class~="practice"] vs. section[class~="level1"]:not([class~="practice"])
but no luck. Any thoughts?
Thanks,
Tom
I have an author template that has one element, and the css is supposed to trigger an action button based on the existence (or non-existence) of a subclass. For example my xml has:
<section class="level1 practice"> vs. <section class="level1">
I tried selecting with:
[class$="practice"] vs. [class$="level1"]
and
section[class~="level1"][class~="practice"] vs. section[class~="level1"]:not([class~="practice"])
but no luck. Any thoughts?
Thanks,
Tom