If you're looking to customize the way your web pages appear when printed, there are multiple approaches using CSS. One of the easiest methods is to include a media query in your existing CSS or within a style tag in the HTML head section. To integrate the media query directly into your document's head, insert the following code snippet below the title tag (adjusting for your own style IDs):
<style>
@media print {
#headerStyle {display:none;}
#sideMenuStyle {display:none;}
#contentStyle {width:100%;}
}
</style>
Alternatively, you can create a separate stylesheet specifically for printing by linking it at the end of all other CSS files or stylesheets. A standard method would look something like this:
<link rel="stylesheet" href="css/print.css" type="text/css" media="print">