html - Disabling printer default margin with css (with chrome)? -
with adobe indesign it's possible result:
i tried same result css
<style type="text/css" media="print"> @page { size: auto; /* auto initial value */ margin: 0mm; /* affects margin in printer settings */ } body { background-color:#ffffff; border: solid 1px black ; margin: 0px; /* affects margin on content before sending printer */ } </style>
but it's impossible set margins 0. have margin on 4 sides:
i'm using google chrome tests. tried:
same thing, little white margins on 4 sides...what's wrong?
any appreciate. jsfiddle : https://jsfiddle.net/l63dc1yd/
i think can solve problem css3 media query.
@media print { html,body { margin: 0; } }
Comments
Post a Comment