Skip to content

Instantly share code, notes, and snippets.

@janxious
Created February 3, 2011 02:39
Show Gist options
  • Save janxious/808939 to your computer and use it in GitHub Desktop.
Save janxious/808939 to your computer and use it in GitHub Desktop.
A very basic layout for controlling page sizes
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Untitled Document</title>
<style type="text/css">
@page { size: A4; }
@page cover { size: A6 portrait; background-color: rgb(243,241,224); }
#cover { page: cover; }
</style>
</head>
<body>
<div id="cover">
Example Cover
</div>
<div id="a_page">
Example Page
</div>
<!-- You can check out the result of this at http://dl.dropbox.com/u/599002/DocRaptor/docraptor_page_sample.pdf -->
<!-- More info about paging at http://www.princexml.com/doc/6.0/page-selectors/ -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment