Reputation: 644
I want to print the webpage in A5 using chrome's default print page dialog box. I managed to write some css but paper size still remains A4 in chrome's print dialog box and large margin appears on the page.
I have tried setting css rules like setting margin of page to 0 but didn't work.
@page{margin: 0; size: A5 portrait;}
The paper size in chrome's print dialog box should be selected to A5 and there should not be any margin in the page
Upvotes: 1
Views: 3472
Reputation: 51
Could use the paper css library as stated in : stackoverflow force a5 paper size in chrome print settings css also some valuable read that might help w3.org or stackoverflow disabling browser print options
Upvotes: 1
Reputation: 2780
The size
CSS property is still experimental and does not have much support yet, and so should not be relied on.
You can find more information here: https://developer.mozilla.org/en-US/docs/Web/CSS/@page/size
Upvotes: 0