Custom Stylesheet Examples
Here you can find some example stylesheets that can be used for formatting the document.
Important: Do not set the body and HTML height to 100% in the stylesheet if you are using cover pages. Set it to 99% instead.
Formatting headers
With the below example you can change the color of header1 to red and header2 to blue:
If you want to change the style of the document title, you have to use another CSS class on header1:
Formatting text
You can format bold texts by referring to the paragraph HTML element.
To change the text align to justify, include this in the stylesheet:
To strike through a text, use this:
Formatting bold text
You can format bold texts by referring to the strong HTML element.
For example, this code sets the color of the bold texts to blue:
Setting the page size (PDF only)
You can use the '@page'
rule to set the page size.
You can use absolute values:
Or you can use the paper size name:
Using the page-bottom macro
Use the the page-bottom CSS class to format the page bottom macro.
Using the code block macro
To have line breaks in code block macro, add the following:
Last updated