I am struggling to create a title with list numbers, but unfortunately the numbers are not matching up correctly.
h4.heading_numberlist {
margin-top: 12pt;
margin-right: 0in;
margin-bottom: 3pt;
margin-left: 0in;
page-break-after: avoid;
font-size: 12pt;
font-family: "Arial",sans-serif;
color: black;
font-weight: bold;
}
h4.heading_numberlist::before {
content: counter(list-number, decimal) '. ';
}
div.nested3:not(:first-child) {
counter-increment: list-number;
}
<div class="nested2">
<h3 class="Section_Heading">Section</h3>
<div class="nested3">
<h4 class="heading_normal">Care</h4>
</div>
<div class="nested3">
<h4 class="heading_numberlist">Services</h4>
</div>
<div class="nested3">
<h4 class="heading_numberlist">Tests</h4>
</div>
<div class="nested3">
<h4 class="heading_numberlist">Number</h4>
</div>
</div>
The issue lies in the fact that the decimal numbers are starting from 2 instead of 1 as required by my design.