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

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)

-- 
Tobias

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