Tuesday, March 22, 2016

How to Print css in SharePoint 2013

In this below script,Print css in javascript

Print css

I got is adding media="print" property to the CSS references.

/* This CSS removes the header, navigation and other action elements from the print preview  */

1. 

<style>
     @media print{
     #suiteBar{display:none;}
          #titleAreaBox{display:none;}
          #pageTitle{display:none;}
#btnPrint{display:none;}

     }
     </style>


/* Insert your print stylsheet here */

}

2. 

 /* Reference master page  */ 

<link rel="stylesheet" media="print" href="print.css" type="text/css"/>
 

No comments:

Post a Comment