dimensions-015-print-ref.html (639B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <style> 4 @page { 5 width: 7.5in; 6 height: 8in; 7 margin: 0; 8 } 9 :root { 10 print-color-adjust: exact; 11 } 12 body { 13 margin: 0; 14 } 15 </style> 16 <div style="display:flow-root;"> 17 <div style="margin-left:10px; width:1in; height:1.5in; background:cyan;"></div> 18 </div> 19 <div style="display:flow-root; margin-top:0.5in; height:6in; background:yellow;"> 20 <div style="margin:10px; width:1in; height:1.5in; background:cyan;"></div> 21 22 The page area size should be 7.5 by 6 inches. There should be two identical 23 cyan boxes above. 24 </div>