showing results for - "bootstrap not working in print"
Denis
10 Apr 2018
1<script> 
2    function printDiv() { 
3        var divContents = document.getElementById("main_div").innerHTML; 
4        var a = window.open('', '', 'height=500, width=500'); 
5        a.document.write('<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"><html>'); 
6        a.document.write('<body >'); 
7        a.document.write(divContents); 
8        a.document.write('</body></html>'); 
9        a.document.close(); 
10        a.print(); 
11    } 
12</script> 
13