I encountered an issue while attempting to print a section of my website. Despite having CSS information embedded in my HTML file, the properties are not being displayed. Do you have any solutions for this problem?
var content = document.getElementById("div id");
var WinPrint = window.open('', '');
WinPrint.document.write(content.innerHTML);
WinPrint.document.close();
WinPrint.focus();
WinPrint.print();
WinPrint.close();
Thank you in advance!