Can Chrome print out CSS inches exactly on printer -


it seems when set css print styles , print in chrome, not match set in css.

any way working correctly?

sometimes browser resize viewport fit on page. however, there print-specific css rules experiment along. main 1 size attribute:

    @media print {         @page {             size: a4 portrait;         }     } 

a bit more page size rule:

auto − page box set size , orientation of target sheet.

landscape − overrides target's orientation. page box same size target, , longer sides horizontal.

portrait − overrides target's orientation. page box same size target, , shorter sides horizontal.

[length] − length values 'size' property create absolute page box. if 1 length value specified, sets both width , height of page box. percentage values not allowed 'size' property.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -