W3C home > Mailing lists > Public > www-style@w3.org > November 2014

Re: [css3-page] Proposing @margin for marginalia

From: Tobias Herp <tobias.herp@gmx.de>
Date: Tue, 04 Nov 2014 00:56:41 +0100
Message-ID: <54581639.8070503@gmx.de>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style list <www-style@w3.org>
Hello Tab,

> We're planning to add "inner" and "outer" values to 'float', which, in
> a page context, indicate the direction of the spine or the edge.  (In
> a non-page context, they'll act like "start" and "end", respectively.)

Yes, this sounds more useful for the purpose :-)

BTW, will these values be available for text-align values, and for
padding/margin as well?

Then, a marginalia could be formatted like this:

  .marginalia {
     float: outer;
     clear: both;
     margin-outer: -32mm;  /* we need to float *out* of the block! */
     text-align: inner;
     display: block;
     width: 30mm;

... and the @page rule would boil down to:

  @page {
     padding-outer: 32mm;

(without the need to write this twice, for :left and :right pages)

Received on Monday, 3 November 2014 23:57:04 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:45 UTC