media query for printing code example
Example: print media query css
@media print {
/* All your print styles go here */
#header, #footer, #nav { display: none !important; }
}
@media print {
/* All your print styles go here */
#header, #footer, #nav { display: none !important; }
}