I have the following in my XML file:
... and the following in my CSS:
When I render it using Prince, the blocks come out with a 0.1cm horizontal gap between them. I can confirm that it's exactly 0.1cm, because if I set the left and right margins to negative 0.05cm (that is, -0.05cm), they line up perfectly.
(There's no problem with the top and bottom margins, though.)
Where's the extra millimetre coming from?
<cards>
<card>Contents of card 1.</card>
<card>Contents of card 2.</card>
<card>Contents of card 3.</card>
<card>Contents of card 4.</card>
<card>Contents of card 5.</card>
<card>Contents of card 6.</card>
<card>Contents of card 7.</card>
<card>Contents of card 8.</card>
</cards>
... and the following in my CSS:
@page cardpage
{
size: US-Letter landscape;
margin: 1.0cm;
}
cards
{
page: cardpage;
}
card
{
display: inline-block;
margin: 0.0cm;
padding: 0.0cm;
border: solid 1pt black;
border-radius: 0.5cm;
width: 6.3cm;
height: 8.8cm;
}
When I render it using Prince, the blocks come out with a 0.1cm horizontal gap between them. I can confirm that it's exactly 0.1cm, because if I set the left and right margins to negative 0.05cm (that is, -0.05cm), they line up perfectly.
(There's no problem with the top and bottom margins, though.)
Where's the extra millimetre coming from?