You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply include the right stylesheet(s) in your html and load it only for a printer.
Gutenberg.css is the base stylesheet but there are themes available in the themes folder.
To hide elements to be printed you can simply add the class no-print.
Force break page
Gutenberg provides two ways to break a page, the class break-before will to break before and break-after to break after.
Example:
<!-- The title will be on a new page --><h1class="break-before">My title</h1><pclass="break-after">I will break after this paragraph</p><!-- Break here, the next paragraph will be on a new page --><p>I am on a new page</p>
Avoid break inside
To avoid the page to break "inside" an element, you can use the avoid-break-inside class.
Example:
<divclass="avoid-break-inside"><imgsrc="gutenberg.png" /><p>I really don't want this part to be cut</p></div>
Not reformat links or acronym
If you do not want to reformat the links, acronym or abbreviation to show the full url or title, you can use the class no-reformat.
Force to print background
To force backgrounds to be printed (can be useful when you "print" a pdf), add this CSS (compatible with Safari and Chrome):