W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Page pseudo-elements

From: Michael Day <mikeday@yeslogic.com>
Date: Sun, 23 Feb 2003 00:08:09 -0500 (EST)
Message-ID: <Pine.LNX.4.44.0302231613330.2499-100000@lorien.yeslogic.com>
To: www-style@w3.org




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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:19 GMT