Weasyprint: CSS question: container padding on each page

Created on 20 Sep 2019  路  2Comments  路  Source: Kozea/WeasyPrint

When a container spans multiple pages having a padding set, the padding will apply around the container. Is it possible to have the padding apply on each page instead?

Here an illustration of what is meant: https://cl.ly/09223d197d07

CSS question

All 2 comments

Hello!

Is it possible to have the padding apply on each page instead?

Yes, you can use the box-decoration-break property.

Have fun!

Thank you, I was unaware of its existence; it works marvellously.

Was this page helpful?
0 / 5 - 0 ratings