I have a thermal receipt printer. I am using javascript to print a div it's printing everything correctly apart from that it keeps printing whole roll(blank) after printing data in the start. I think the problem is in the CSS but I can't figure it out. Here is what I have got so far.
@media print {
html, body {
border: 1px solid white;
height: auto !important;
page-break-after: always !important;
page-break-before: always !important;
}
.paper-size {
width: 76mm !important;
}}