In my stylesheet I have divs for different types of warnings we use. It is set up to have auto-numbering for the p:first-child as shown below.
Code: Select all
div.NoteWarningGeneral p:first-child {
mc-auto-number-format: '{b}WARNING{/b}: ';
}
I understand why this is happening -- the CSS is set to select any first-child <p> element within the div. I just want it to select the first one of the specific div. Is there a way to do this? I have tried using div.NotWarningGeneral>p:first-child, but the auto-numbered text doesn't show at all when I do this.
Code: Select all
<div class="NoteWarningGeneral">
<p>
<MadCap:snippetText src="..x.flsnp" /> (Shows autonumber text, yay!)
</p>
<ul>
<li>
<p>
<MadCap:snippetText src="../secure.flsnp" /> (Shows autonumber text, nay!)
</p>
</li>
<li>
<p>
<MadCap:snippetText src="..performance.flsnp" /> (Shows autonumber text, nay!)
</p>
</li>
</ul>
</div>