I am working on a project and I want to print div content.The code which I am using is fulfilling my requirements,but I am getting simple output without Css applied to it an
You need to change the css property media to print. Add new line to your function createPopup() as below you attached your css:
media
print
mywindow.document.write( "" );