Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Post

Quick Tips – CSS: Page breaking for print

Quick Tips is a series of posts designed to show some quick html, css and php tips that you may find useful in your every day work or personal projects.

The following code snippet will allow you to set the page breaking behavior to break before every h1 element, giving you a lot of control over how printed versions of your website will be displayed.

@media print {
       h1 {page-break-before:always}
}

If you wish to submit a quick tip to this section please contact me..

Related posts:

  1. Quick Tips – CSS: Change Text Highlight Color
  2. Can I have a quick word(le)?

Leave a comment  

name*

email*

website

Submit comment