I'm hoping this technique is possible.
Explaining the following code, I want to be able to format the text of
a subclass, depending on who their parent is.
For example, all child elements nested within <div> tags that has a
class=para, will either get underlined or bolded depending on their
parent (theme or section). The importance is that the children has a
class of "para", but that they should be formatted a certain way
depending on their parent.
APPRECIATE IT IF ANYONE CAN HELP.
<style>
div { font-family: Arial; }
div.theme { color: #000099; }
div.section { color: #990000; }
..section.para { font-weight: bold; }
..theme.para { text-decoration: underline; }
</style>
<body>
<div class="theme">
<div class="para">
THEME
</div>
</div>
<div class="section">
<div class="para">
SECTION
</div>
</div>
</body>