print css code example
Example 1: print media css
@media print {
/* styling goes here */
.example {
display: none;
}
}
Example 2: css print
@page {
margin: 0.5cm;
}
Example 3: print css
/* print.css */
* {
background-image: none !important;
}
img, svg {
display: none !important;
}
img.print, svg.print {
display: block;
max-width: 100%;
}