Forum How do I...?

remove page margin when footer is not present.

Cuberic
I have a problem when a template extends over multiple pages the footer space is being kept on each page thus leaving a weird blank space at the end of each page for the footer.

Here is my css:

@media print {
	@page {
		size: A4; 
		margin: 10pt 10pt 10pt 10pt ;
 		prince-shrink-to-fit: auto;
		background:$pageBG;
	}
	@page last_page{
		margin: 10pt 10pt 130px 10pt ;
		@bottom {
			content: flow(footer);
		}
	}
	.siv-r-page-break {
		page-break-before:always;
	}
	.siv-r-legend-wrap {
		height:100px;
		flow:static(footer);
	}
	.siv-r-foot-page {
		page:last_page;
	}


I attached a file as an example of the footer space at the end of the first page causing a problem.
  1. weekly.summary.pdf48.6 kB
mikeday
The attached PDF file has only one page, does it contain the .siv-r-foot-page block?