i want to print web page with javascript function window.print()
the page include div with scroll bar
But printing is displayed only part of the div
I tried to add to css
@media print
{
.myDiv
{
height:100%;
}
}
but it not work,
i want to show all div content without scroll bar how i do it?
This is code to print div content using javascript.
This method will let you print any arbitrary div.
Using jQuery:
And some CSS:
try this
Note:dont give inline style to div