html - CSS Print and @page are not working -


i have simple html page , on that, have

body, html {   width: 100%;   margin: 0;   padding: 0; }  @media print {   @page {     size: letter portrait;     padding-left: 5in;     padding-right: 0.25in;     padding-top: 1in;   } } 

however, when print preview in chrome, appears unaffected. have chrome recognize @page , media query?

i don't think need media query because @page print.

also, according to: https://developer.mozilla.org/en-us/docs/web/css/@page

you can change margins, orphans, widows, , page breaks of document. attempts change other css properties ignored.

maybe using margins instead of padding work.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -