CSS Reference
For users with web development experience, the following contains the built-in rules, along with the default additional CSS rules. These rules can be inserted into into your HTML editor during local development.
Base CSS (built-in)
The Base CSS is built into each page and cannot be changed.
While the CSS itself cannot be changed, you can:
Adjust the variables at the top — these align to settings available in the merge template form.
Override the CSS using Additional CSS
/* Variables */
:root {
/* overall page dimensions */
--firstPageTopMargin: 10mm;
--firstPageBottomMargin: 10mm;
--pageTopMargin: 10mm;
--pageBottomMargin: 10mm;
--height: 297mm;
--mediaPrintTopMargin: 20mm !important; /* page header */
--mediaPrintBottomMargin: 20mm !important; /* page footer */
/* to set a background, use url(https://path/to/your/background.png) */
--letterheadFile: none;
/* margins for the letter content */
--topMargin: 20mm;
--leftMargin: 0mm;
--rightMargin: 0mm;
/* address positioning from top left of page */
--addressLeft: 20mm;
--addressTop: 80mm;
}Additional CSS (customisable)
The Additional CSS is user-configurable. The following is a good starting point, which provides the classes used in this guide.
This CSS is automatically included for new templates. You can adjust this to suit your needs.
Last updated
Was this helpful?
