Home Forums DITA and XMetaL Discussion Problem with overriding style for substeps Reply To: Problem with overriding style for substeps

Su-Laine Yeo

Reply to: Problem with overriding style for substeps

Hi Joe,

The following code should work:

/* substeps */
[class~=”task/step”]>[class~=”task/substeps”] {
   display: block;
   list-style-type: decimal;
   counter-reset: substeps;
}

Class-based styling in the override.css files works, however this case was tricky because it is necessary to override the styling defined for nested

    elements, in addition to overriding the styling defined for elements.

    Your second code example applies decimal styling to all types of lists, not just substeps, because you had the word “substeps” commented out. You probably did this by accident, but if it's what you're after, it will work!

    Su-Laine

Reply

Products
Downloads
Support