CSS Parent Child Same Class Selector?
Is there a way in pure CSS2 (supported by IE), to give an attribute to any element that has the same class name as its parent without specifying each name? I know I could just do div.tech span.tech, div.other span other for the attribute name in the CSS file, but was curious if there was a shortcut to this.
i.e.
<div class="tech">
<span class="tech">special text here</span><span class="other">this text will only be highlighted when contained in a div with a class of other</span>
</div>
I need a list of words randomly arranged and when they are on a certain page only the words applicable to that section stand out.
i.e.
<div class="tech">
<span class="tech">special text here</span><span class="other">this text will only be highlighted when contained in a div with a class of other</span>
</div>
I need a list of words randomly arranged and when they are on a certain page only the words applicable to that section stand out.
