HTML CSS Snippets

Adding page breaks to your web pages

<html>
<body>

This is the text for page #1.

<p style="page-break-before: always">

Page #2...

</p>

<p style="page-break-before: always">

Page #3...

</p>

</body>
</html>

Wrap text in a <pre> tag

<style>
  pre {
    overflow-x: auto;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
  }
</style>
Hyper Useful, Ready To Use HTML Snippets