I need to set a layout to be printed using paper of half letter size (215mm height and 139mm width). I have tested many css parameters such as
@page {
size: 139mm 215mm;
margin: 0;
}
@media print {
@page {
size: 139mm 215mm;
}
}
html {
width: 139mm;
height: 215mm;
margin: 0;
}
body {
width: 139mm;
height: 215mm;
margin: 0;
}
<body>
<div style="height: 215mm; width: 139mm; border:solid grey 1px;">
<!-- My content -->
...
</div>
</body>
But when I print using Control+P, I always get a Legal vertical size page.
How can I set this custom size to be printed in any browser?