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!
MadCap:autnum attribute selector
-
- Jr. Propeller Head
- Posts: 6
- Joined: Thu May 28, 2015 2:44 am
-
- Propeller Head
- Posts: 65
- Joined: Fri Mar 01, 2019 9:14 am
Re: MadCap:autnum attribute selector
So did you try it? Inquiring minds want to know!
"I'm a technical writer, not a developer," she said...