page-margin-002-print.html (661B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://www.w3.org/TR/css-page-3/#at-page-rule"> 4 <link rel="match" href="page-margin-002-print-ref.html"> 5 <style> 6 @page { 7 margin: 10px 20px 30px 40px; 8 } 9 :root { 10 print-color-adjust: exact; 11 writing-mode: vertical-rl; 12 } 13 body { 14 margin: 0; 15 } 16 .fullpager { 17 width: 100vw; 18 height: 100vh; 19 } 20 </style> 21 <div class="fullpager" style="background:yellow;"> 22 first page 23 </div> 24 <div class="fullpager" style="background:cyan;"> 25 second page 26 </div> 27 <div class="fullpager" style="background:pink;"> 28 third page 29 </div>