Is there any WORKING CSS method for printing page counts?

I'm looking for any solution to print page counting with CSS, but every "solution" I find doesn't work in any browser, nor in valid solutions, but only in tips.


@page {
    @bottom-left {
        content: "blablabla"


This is a valid CSS3 rule, but does not work in any browser.

Can anyone help me?

This example DOES NOT WORK:

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <title>Test example</title>
        @page {
            @bottom-left {
                counter-increment: page;
                content: counter(page);
    <div id="content">
         <!-- LONG CONTENT HERE -->



source to share

1 answer

@page { @bottom {} }


You have for you :





All Articles