jquery - How to change font-size of printable div -


how can change font-style of div wwant print?

this styling

@page {     size: a4;     margin: 0; } @media print {     .page {         margin: 0;         border: initial;         border-radius: initial;         width: initial;         min-height: initial;         box-shadow: initial;         background: initial;         page-break-after: always;     }     html, body {         width: 210mm;         height: 297mm;     } } 

example:

html, body {         width: 210mm;         height: 297mm;         font-size: 1mm;     } 

i tried font-size not getting smaller doing wrong? appreciated..

this should work. should able see changes in print preview window. if don't see changes try adding !important css rule.

@media print {  div {    font-size: 1mm; /*   font-size: 1mm !important;*/   }   /*also move @page css inside @media css */  @page {      size: a4;      margin: 0;   }  } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -