There is a website that I would like to print the div content of. The problem is that the div is scrollable and I\'m not able to print all the content. I\'ve tr
My answer is based on the ones given by @Porschiey and @Paul Roub with a slight addition.
Their given solution did work for me in most cases except for some where the position: fixed. In the resulting print, this would usually contain only the content that was able to fit in the actual size of the
So, I also had to change the position CSS attribute to something like relative so that everything could get printed. So, the resulting CSS that worked for me is this:-
{
display: block; /* Not really needed in all cases */
position: relative;
width: auto;
height: auto;
overflow: visible;
}