I have a table with 2 columns and multiple rows. While I'm printing that table, 2nd and above pages border is not printed.
So how to border all the pages while printing ?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit Kumar SinghRank #562 · 4.3K reputationPosted Feb 15, 2016, 8:15 PM EST
function printDiv() { var divToPrint = document.getElementById('table'); var htmlToPrint = '' + '' + 'table th, table td {' + 'border:1px solid #000;' + 'padding;0.5em;' + '}' + ''; htmlToPrint += divToPrint.outerHTML; newWin = window.open(""); newWin.document.write(htmlToPrint); newWin.print(); newWin.close(); }Sanket JainRank #1,789 · 835 reputationPosted Feb 16, 2016, 7:07 PM EST