Re: [whatwg] HTML 5 should include a way to create custom page header & footer for printing.

(Note: please don't cross-post e-mails to multiple mailing lists when one 
of those lists is the WHATWG list, as it tends to result in fractured 
threads that are hard to follow for those not on all the lists.)

On Mon, 15 Oct 2012, Tab Atkins Jr. wrote:
> On Sun, Oct 14, 2012 at 12:10 AM, Mircea LUTIC <mircea_lutic@yahoo.com> wrote:
> > HTML 5 should include a way to create custom page header & footer for
> > printing.
> > These should allow to include images
> >
> > I think it should be something like
> > <html>
> > <head>
> >   <title><img src="logo.svg"/>My company software<br/>The best software on
> > the  planet</title>
> > </head>
> > <body>
> > ...
> 
> This is not an HTML issue, but rather a CSS one.  And luckily, this 
> issue is already addressed: 
> <http://dev.w3.org/csswg/css3-page/#populating-margin-boxes>
> 
> I don't *think* this has been implemented in browsers yet, but it has 
> been in several HTML+CSS-based printing programs, like PrinceXML or 
> WeasyPrint.

As Tab says, this is mostly a CSS issue.

Note that you can create detailed headers/footers in HTML using <header> 
and <footer>, which could then be hidden for screen media and placed in a 
margin box for print media using CSS, once CSS supports flowing elements 
into particular boxes. (No idea if this is planned yet.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 15 October 2012 17:06:56 UTC