On Sat, 16 Jan 2021 20:34:09 +0000, Robert Prins wrote:
>
>
ol.ml li:before {
> counter-increment:list;
> content: counters(list, ".") ". ";
> }
>
> By using the above, I can create lists with
> 1.
> 1.1.
> 1.2.
> etc numbering, which is what I (almost) need. However, is there a
> way of removing the final '.' on the *lower* levels, so that the
> above would come out as
> 1.
> 1.1
> 1.2
> which is waht I really "need"?
The selector to access a lower-level list is
ol.ml ol.ml li { ... }.
This specifies <ol class="ml>, within it another <ol class="ml">, and
within that an <li>.
Think of the space between tags and classes as meaning "containing".
Since it is more specfic, it will override any conflicting properties
in your "
om.ml li:before" selector.
--
Stan Brown, Tehachapi, California, USA
https://BrownMath.com/
https://OakRoadSystems.com/