Edit online

Suppose you want to publish using the standard A4 page size, with a margin of 2cm.

In your customization css, use:

@page {
    size: A4;
    margin: 2cm;
}

If you need different margins depending on the page side:

@page {
    size: A4;
    margin: 2cm;
}
@page :left{
    margin-right:4cm;
}
@page :right{
    margin-left:4cm;
}

This would only increase the gutter margins or the inside margins needed for binding of the final book. The other margins would remain 2cm.