D
Daan
Say I have the following document structure:
<h1>First Part</h1>
<h2>First chapter in first part</h2>
<h2>Second chapter</h2>
<h1>Second Part</h1>
<h2>First chapter in second part</h2>
<h3>Paragraph X</h3>
<h3>Paragraph Y</h3>
<h3>Paragraph Z</h3>
<h2>Second chapter</h2>
Is it possible, perhaps using CSS, to automatically append numbering
to these heads, such that the result is:
1 First Part
1.1 First chapter in first part
1.2 Second chapter
2 Second Part
2.1 First chapter in second part
2.1.1 Paragraph X
2.1.2 Paragraph Y
2.1.3 Paragraph Z
2.2 Second chapter
It's not that I really want to apply this on a website, but I am
curious if it is possible with HTML / CSS.
Daan
<h1>First Part</h1>
<h2>First chapter in first part</h2>
<h2>Second chapter</h2>
<h1>Second Part</h1>
<h2>First chapter in second part</h2>
<h3>Paragraph X</h3>
<h3>Paragraph Y</h3>
<h3>Paragraph Z</h3>
<h2>Second chapter</h2>
Is it possible, perhaps using CSS, to automatically append numbering
to these heads, such that the result is:
1 First Part
1.1 First chapter in first part
1.2 Second chapter
2 Second Part
2.1 First chapter in second part
2.1.1 Paragraph X
2.1.2 Paragraph Y
2.1.3 Paragraph Z
2.2 Second chapter
It's not that I really want to apply this on a website, but I am
curious if it is possible with HTML / CSS.
Daan