0

I want to print the entire div content using jquery.

Currently I am using window.print() method. But it displays only some content in print page and some content missing.

I want to print entire data in my print page.

Matt Wolfe
  • 8,924
  • 8
  • 60
  • 77

1 Answers1

0

You should use a separate css file for printing the page or a css3 media queries:

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

css file:

body, html, #wrapper {
    width: 100%;
}

or main css file:

@media print {
      body, html, #wrapper {
          width: 100%;
      }
}

You can refer this

Community
  • 1
  • 1
Jibin Balachandran
  • 3,381
  • 1
  • 24
  • 38