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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -