Saturday, April 9, 2016

Print css using Window.print() using pdf print

In this below script, Print css using Window.print

Print css using Window.print In SharePoint
<style type="text/css" media="print">
@page {
    size: auto;   /* auto is the initial value */
    margin: 0;  /* this affects the margin in the printer settings */
}
</style>


@page :left {
  margin-left: 4cm;
  margin-right: 3cm;
}

@page :right {
  margin-left: 3cm;
  margin-right: 4cm;
}

No comments:

Post a Comment