MadCap:autnum attribute selector
Posted: Thu Jan 20, 2022 3:50 am
Is it possible to use an attribute selector in your stylesheet to select a h1, h2 or h3 with a MadCap:autonum attribute with a value 10 or higher, and then to define the mc-auto-number-offset and margin-left?
I would like to have a variable mc-auto-number offset as soon as I have 2 digits in the heading numbering. For example, 10., 11., 1.10, 1.11, 1.1.10, 1.1.11, etc.
This is an example of a selector I would use:
h1[MadCap:autonum^=10.]
{
mc-auto-number-offset: 80px;
margin-left: 80px;
}
Thank you for your help!
I would like to have a variable mc-auto-number offset as soon as I have 2 digits in the heading numbering. For example, 10., 11., 1.10, 1.11, 1.1.10, 1.1.11, etc.
This is an example of a selector I would use:
h1[MadCap:autonum^=10.]
{
mc-auto-number-offset: 80px;
margin-left: 80px;
}
Thank you for your help!