I would like to know where I'm going wrong in my css code, as I'm trying to put a dot in the sorted list title, eg:
And also add subtitle to it:
Title
1.1 Subtitle
But when I see the test, it is not adding the point in the numbering of the Title, thus:
1 Title
Where the sub title works normal.
Css code:
ol {
counter-reset: section;
list-style-type: none;
}
li::before {
counter-increment: section;
content: counters(section, ".") " ";
}
.custom-counter {
margin: 0;
padding: 0;
list-style: none;
}
.custom-counter li {
counter-increment: step-counter;
}
.custom-counter li::before {
content: counter(step-counter)'.';
margin-right: 5px;
}
HTML code:
<div class="col-sm-50" style="margin-bottom: 30px;">
<textarea required="" type="text" class="form-control" name="comentarios">
<ol class="custom-counter">
<li><b>RESUMO DE ATIVIDADES</b></li>
<li><b>COMENTÁRIOS</b></li>
</ol>
</textarea>
</div>
Remembering that, it does not have a subtitle in the code above because I'm working with CKEditor, where after I give a line break in the title within the text editor, it automatically adds a subtitle