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
Post a Comment