css style page for print code example
Example 1: print media css
@media print {
/* styling goes here */
.example {
display: none;
}
}
Example 2: css print
@page {
margin: 0.5cm;
}
@media print {
/* styling goes here */
.example {
display: none;
}
}
@page {
margin: 0.5cm;
}