html - Disabling printer default margin with css (with chrome)? -


with adobe indesign it's possible result:

enter image description here

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:

enter image description here i'm using google chrome tests. tried:

enter image description here

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

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -