Forum How do I...?

Header on first page only

get2coding
Hello,
This seems so trivial but I'm not having any success using prince. I have to modify this code someone long gone wrote to have the header appear only on the first page. could you tell me how this can be done? Thanks.

@page {
		margin: 0;
		margin-top: 150px;
		margin-bottom: 42px;

		@top {
			content: flow(header);
		}

		@bottom {
			background: #07507f;
			content: flow(footer);
		}
	   }

body { font-family: Arial; font-size: 14px; }
#header { prince-flow: static(header); padding: 0 0.25in; }
/* more css ... */
mikeday
How about using the @page:first selector?
get2coding
@mikeday thanks! Yes, that was the first thing I tried before posting here. However, the result was very strange. Using
@page:first
removed the header completely from the first page and all of the following pages. I wouldn't have expected that effect based on the docs. Any other suggestion/s?
mikeday
Can you paste the exact CSS you tried?