Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Untitled Document</title>
- <style>
- body {
- background: rgb(204,204,204);
- }
- page {
- background: white;
- display: block;
- margin: 0 auto;
- margin-bottom: 0.5cm;
- box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
- page-break-inside : avoid
- }
- page[size="A4"] {
- width: 29.7cm;
- height: 21cm;
- background-image: url(a4paisagem/a4paisagemprojeto.fw.png);
- background-repeat: no-repeat;
- background-size: 29.7cm 21cm;
- margin: 0mm; /* this affects the margin in the printer settings */
- }
- page[size="A4"][layout="portrait"] {
- width: 29.7cm;
- height: 21cm;
- }
- page[size="A3"] {
- width: 29.7cm;
- height: 42cm;
- }
- page[size="A3"][layout="portrait"] {
- width: 42cm;
- height: 29.7cm;
- }
- page[size="A5"] {
- width: 14.8cm;
- height: 21cm;
- }
- page[size="A5"][layout="portrait"] {
- width: 21cm;
- height: 14.8cm;
- }
- @media print {
- body, page {
- margin: 0;
- box-shadow: 0;
- }
- }
- </style>
- </head>
- <body>
- <page size="A4" layout="portrait"></page>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement