Sorry, this seems to be the dumbest question... but I have searched and searched and found no answer.
I'm sure the answer is obvious, but it is eluding me.
I'm just looking for an output such as this:
--[page]--
1.
2.
3.
4.
--[page]--
1.
2.
3.
4.
etc
I'm sure the answer is obvious, but it is eluding me.
<!DOCTYPE html>
<html lang="en">
<head>
<style>
/* Attempt to reset a counter within @page */
@page {
counter-reset: line-no;
}
div.numbered {
counter-increment: line-no;
height: 5cm;
}
div.numbered::before {
content: counter(line-no) ') ';
}
</style>
</head>
<body>
<div class="numbered">Lorum Ipsum</div>
<div class="numbered">Lorum Ipsum</div>
<div class="numbered">Lorum Ipsum</div>
<div class="numbered">Lorum Ipsum</div>
<div class="numbered">Lorum Ipsum</div>
<div class="numbered">Lorum Ipsum</div>
<div class="numbered">Lorum Ipsum</div>
<div class="numbered">Lorum Ipsum</div>
</body>
</html>
I'm just looking for an output such as this:
--[page]--
1.
2.
3.
4.
--[page]--
1.
2.
3.
4.
etc
Edited by sfinktah