What is @page?

I have this in my stylesheet:


@page 
{
    margin: 0.5in;
    padding: 1em;

    @bottom-right 
    {
        content: counter(page);
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 8pt;
    }

    @bottom-left
    {
        content: "Some text";
        font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
        font-size: 8pt;
    }
}

What is @page and what else can you do with it?

+3
source share
2 answers

@page sets styles for uploaded materials. This gives an introduction to what is called in a page-by-page format, but as far as I have ever seen it used, it is very important when you want to control the printing of a page.

The description from w3 for @page in CSS 3 has a slightly better description, but naturally applies only to css3.

+10
source

@page . , @bottom-right @bottom-left .

+3

Source: https://habr.com/ru/post/1710565/


All Articles