Problem with border on second sheet when printing CSS

0

I'm having trouble printing a document from a table. The first page respects the margins and works normally. Already the other pages, when necessary, overlap my header that accompanies all the pages. The next few pages do not respect the margins reported.

My print action looks like this:

@media print {
        footer {
            position: relative;
            width: 80%;
            bottom: 20;
            margin-left: 50;
        }

        header {
             position: fixed;
            width: 80%;
            top: 20;
            margin-left: 50;

        }


        #botao_imprimir {
        display: none;
       }
       #conteudo{
        text-align: center;
        padding-top: 170px;
        width: 90%;
        margin-left: 50px;
       }
       @page { 
           size: auto;  
           margin: 0mm;
       }

    }

Does anyone know how to solve it?

    
asked by anonymous 10.10.2018 / 20:19

0 answers