.book-summary ol {
counter-reset: item ;
}
.book-summary ol li {
margin-left:10px;
margin-top:5px;
display:block;
}
.book-summary ol li:before {
content: counters(item, ".") " "; counter-increment: item;
}
<div class="book-summary">
<ol>
<li>Component Location</li>
<li>Special Tools</li>
<li>Specifications
<ol>
<li>General Inforamation</li>
<li>Engine</li>
<li>CVT</li>
</ol>
</li>
<li>Torque Specifications</li>
<li>Troubleshooting</li>
<li>cfs</li>
</ol>
</div>
I'm working on creating an ordered list that resembles a table of contents for a book. However, I've noticed that my first level list items only display the number ("1") without including a period ("1.") next to it.
How can I adjust my code so that there is a dot after each first level list item?