Margin inside / outside for CSS Highlighting Paged Media in AntennaHouse

I make print layouts with HTML and CSS with the AntennaHouse renderer.

The box in my content should have a left margin of 20pt on the left pages and 10pt on the right pages.

/* on left hand pages */
margin-left: 20pt;
margin-right: 10pt;

/* on right hand pages */
margin-left: 10pt;
margin-right: 20pt;

Thus, the outer edge of the field should be 20pt, and the inner field 10pt. Basically I am looking for a syntax (which does not exist):

/* pseudo code */
margin-outside: 20pt;
margin-inside: 10pt;

Does anyone have an idea how to do this? And if so, is there an equivalent for filling inside / out?

XSL-FO solutions are welcome, since AntennaHouse has equivalent functions for rendering FO and CSS ...

+4
source share
1 answer

PrinceXML, margin-inside margin-outside. :

@page {
  size: 6in 9in;
  margin-inside: 0.75in;
  margin-outside: 0.625in;
  margin-top: 1in;
  margin-bottom: 1in
}
+2

Source: https://habr.com/ru/post/1570202/


All Articles