I'm trying to get the following result:
Introduction
1.1. Content
1.2. Programming
1.2.1. JAVA
1.2.2. DOTNET
Conclusion
2.1. Thanks
2.1.1 Family
2.1.2. Teachers
End
Using the following HTML
:
<ol>
<li>Apresentacao</li>
<ol>
<li> Conteudo </li>
<li> Programação </li>
<ol>
<li> JAVA </li>
<li> DOTNET </li>
</ol>
</ol>
<li>Conclusão</li>
<ol>
<li> Agradecimentos</li>
<ol>
<li> Família </li>
<li> Professores </li>
</ol>
</ol>
<li>Fim</li>
</ol>
I got closer through the following CSS
:
ol { counter-reset: item }
li { display: block }
li:before { content: counters(item, ".") " "; counter-increment: item }
But it still causes some problems.
Is there a resource of CSS
or HTML
to get to my result?