MadCap:autnum attribute selector

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Bart Bogaert
Jr. Propeller Head
Posts: 6
Joined: Thu May 28, 2015 2:44 am

MadCap:autnum attribute selector

Post by Bart Bogaert »

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!
Curlyshell
Propeller Head
Posts: 65
Joined: Fri Mar 01, 2019 9:14 am

Re: MadCap:autnum attribute selector

Post by Curlyshell »

So did you try it? Inquiring minds want to know!
"I'm a technical writer, not a developer," she said...
Post Reply