Page pseudo-elements

Hi,

A convenient addition to either the CSS3 Selectors or Paged Media modules 
would be the following page pseudo-elements:

	::first-page
	::last-page
	::nth-page(expr)
	::nth-last-page(expr)

These would allow elements that are broken over more than one page to be 
styled differently on different pages; in particular it would allow 
flexible headers and footers in conjunction with position: fixed.

For example, creating a header that is not displayed on the first page:

#header {
	position: fixed;
	...
}

#header::first-page {
	display: none
}

This seems much more convenient than the proposal in the current CSS3
Paged Media working draft of creating margin boxes that are populated
using the content property.

Cheers,

Michael

Received on Tuesday, 25 February 2003 12:11:35 UTC