I have two divs: div1 and div2.
Maintaining the original css styles applied to the div2 element being printed.
I don\'
You can only print a whole page, not part ofg a page. So, there is two options, you can either copy the content of one element into a new page and print that, or prevent the other element from being printed.
You can use a media css to hide one element from printing. Example:
@media print {
.div1 { display: none; }
}