Viewing 1 replies (of 1 total)
  • I tried the normal way that most browsers support – putting the content in a table with thead and tfoot.

    However, it does not work like that in the DOMPDF. After a lot of trial and error, it actually is a lot better.
    Add two divs to the body. Give them the ids pagehead and pagefoot respectively.

    Add the following CSS:

    body{
    	padding: 30mm 10mm 20mm;
    
    }
    #pagehead {
     	position: fixed;
     	left: 0;
     	top: 0;
     	right: 0;
     	height: 15mm;
     	text-align: left;
     	border-bottom: 1px solid #000;
     	padding:10mm 10mm 0mm;
     }
        #pagefoot {
        	position: fixed;
        	left: 0;
        	bottom: 0;
        	right: 0;
        	height: 15mm;
        	padding: 5mm 10mm 0;
        }

    So yeah, just divs with position: fixed.

Viewing 1 replies (of 1 total)
  • The topic ‘Make content in 2 columns, put heade/footerr on everypage’ is closed to new replies.