Print Styles | Snippets | Responsive Web Design

Print Styles

We love to have sites that render our content beautifully on every device, but often the lonely ol’ printer is forgotten.

This snippet provides you with some basic styling that

  • Puts a page break in for every <section>
  • Sets a margin around the content on the paper
  • Sets any code block sto have page breaks after them
  • splits any words that would usually run off the page (think long URLs)
  • Takes any <a> link URL and adds the URL after the link title
An excerpt from Print Styles

View original article

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.