Skip to content

Print Helper Classes

See general Size Helper Classes. Just add the prefix .print- to the helper classes.

Examples:

sass
// sets the widths to 100% only for print
.print-h-width-100
sass
// sets the widths to "auto" only for print
.print-h-width-auto

See general Spacing Documentation. Just add the prefix .print- to the helper classes.

Examples:

sass
// resets all vertical margins _only_ for print
.print-m-y-reset
sass
// xxl-padding on the right _only_ for print
.print-p-r-xxl

::: demo

:::

Hide on Print

.print-hide or .hidden-print / .no-print (deprecated)

::: demo

:::

TIP

If the hidden element contains another class .-is-visible or .ha-show/.hp-show/.rb-show (deprecated) it will be visible in print, too.

::: demo

:::

Display on Print

TIP

General helper classes are: .print-visible or .pdf-display (deprecated), which will display the element in the print view (display styles depending on element type),

It's preferred to use more specific classes like: .print-inline, .print-block or .print-inline-block or even .print-flex

::: demo

:::
  • .print-color-black to display the font in black.
  • .print-no-bg to remove the background-color.

::: demo

:::

.print-no-border to remove a border.

.print-border-top to add a gray border on the top.

.print-border-bottom to add a gray border on the bottom.

::: demo

:::

Avoid Print Page Break

Use .print-no-page-break to avoid a page-break within the element.

Add a bottom-border to table rows (horizontal border): .print-row-border

::: demo

:::

Add a bottom-right to table columns (vertical border): .print-col-border

::: demo

:::