This is my CSS and HTML:
body {
counter-reset: sections subsection;
}
.manual h1:before {
counter-increment: sections;
content: "Section " counter(sections)". ";
}
.manual h2:before {
counter-increment: subsection;
content: counter(sections)"." counter(subsection)" ";
}
.manual h2 {
line-height: 60px;
color: #3a7486;
}
<div class="manual">
<h1>1</h1>
<h2>1.1</h2>
<h2>1.2</h2>
<h2>1.3</h2>
<h2>1.4</h2>
<h1> 2</h1>
<h2>2.1</h2>
<h2>2.2</h2>
<h2>2.3</h2>
<h2>2.4</h2>
</div>
I want to get the results exactly as you see in the html. However,after the second H1 instead of having 2.1, I see 2.5. am I missing anything?