0

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

Sushil Thapa
  • 564
  • 7
  • 17

2 Answers2

1

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

Carel Kruger
  • 41
  • 1
  • 5
0

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

Rob Kwasowski
  • 2,690
  • 3
  • 13
  • 32