Re: pages

Liam Quinn (liam@htmlhelp.com)
Mon, 2 Jun 1997 20:13:11 -0500


Message-Id: <199706030012.UAA26042@watserv3.uwaterloo.ca>
From: "Liam Quinn" <liam@htmlhelp.com>
To: Erik Aronesty <earonesty@montgomery.com>
Date: Mon, 2 Jun 1997 20:13:11 -0500
Subject: RE: pages 
CC: www-html@w3.org, www-style@w3.org
In-reply-to: <c=US%a=_%p=Montgomery%l=NY-PB-EXCH-1-970602181856Z-765@sf-exch-2.montgomery.com>

On  2 Jun 97 at 11:18, Erik Aronesty wrote:

> Regarding style sheets:
> 	Are there any accepted "style-sheet" constructs which control
> margin/page breaks

Depending on what you mean by "accepted", yes and no.  You can use 
the 'page-break-before' and 'page-break-after' properties of 
Cascading Style Sheets, as defined at 
<http://www.w3.org/pub/WWW/TR/WD-print>.  However, I'm not aware of 
any browser support for these properties as of yet, since CSS 
Printing Extensions are still in the Working Draft phase, and the 
first draft isn't that old.

> headers/footers?

These are listed under "Future Extensions" at the above URL.

> 	Are there "hide this info from the printer" styles?

You can use CSS1 for this:

.toolbar { display: none }

would hide all HTML elements of class "toolbar" (as well as any child 
elements) from the printer when the above rule is used in a style 
sheet linked or embedded with MEDIA=print.

See <http://www.w3.org/pub/WWW/TR/REC-CSS1> for more on CSS1, and 
<http://www.w3.org/pub/WWW/TR/REC-CSS1#display> for more on the 
'display' property.

Liam Quinn
===============  http://www.htmlhelp.com/%7Eliam/  ===============
Web Design Group            Enhanced Designs, Web Site Development
http://www.htmlhelp.com/    http://enhanced-designs.com/