Source code
Revision control
Copy as Markdown
Other Tools
<head>
<title>CSS Test: Paged Media Canvas Background</title>
<link rel="author" title="Melinda Grant" href="mailto:melinda.grant@hp.com" />
<meta name="flags" content="paged" />
<meta name="assert" content="For documents in the html namespace, a background on 'html' will cover the page area but not the margin area." />
<style type="text/css">
@page { margin: 7%; }
html {
background-color: #ddffdd;
}
</style>
</head>
<body>
<div>
<p>There is a white margin around the edge of this page. The top and bottom margins are of equal height, and the right and left margins are of equal width. The rest of the page, including this text, has a pale green background.</p>
</div>
</body>
</html>