Skip to content

Repository files navigation

LICENSEGitHub Super-LinterGitHub Starsnpm Version

Bootstrap Print CSS 🖨️

Bootstrap 5 no longer includes custom CSS for printing - with the CSS in this project you can add it back.

Note: This should improve the experience when printing, but there are bugs and inconsistencies with the way that browsers handle printing so testing is recommended.

Quick Start

  • Download the latest release
  • Clone the repository git clone https://github.com/coliff/bootstrap-print-css.git
  • Install with npmnpm install bootstrap-print-css
  • Install with Yarnyarn add bootstrap-print-css
  • Install with Composercomposer require coliff/bootstrap-print-css

Usage

You can include the CSS with one of the following:

  1. Import the bootstrap-print.css to your main CSS. This will mean one less HTTP request compared to loading it separately.

  2. Load it as a separate CSS file <link rel="stylesheet" href="/css/bootstrap-print.min.css" media="print">

Credits & Thanks

All credit for the CSS work goes to the HTML5 Boilerplate and Bootstrap teams. I've just copied the Bootstrap 4 print styles and packaged them up for Bootstrap 5.

About

Print Stylesheet for Bootstrap 5

Topics

Resources

Code of conduct

Contributing

Stars

59 stars

Watchers

4 watching

Forks

Sponsor this project

Used by

Contributors

Languages