Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Design > Voices That Matter

  • Print
  • + Share This
From the author of

Automatic Pagination

The techniques I discuss in this article rely on manually setting up the page breaks by creating a different page layer for each and then specifying the number of pages in the pageTotal variable at the top of your HTML file. This can be quite time-consuming, not to mention limiting if you have a large Web site and publish a lot of content from a variety of sources.

However, if you have access to server-side technologies such as PHP, JSP, or even ASP, you can code pages that will automatically parse the page, add the controls and page breaks at specified points (for example, after every <h2> tag), and count the total number of pages. The exact method for doing this, though, relies on the technology at your disposal.

  • + Share This
  • 🔖 Save To Your Account