Skip to content
Advertisement

Why a div overlays above other?

I’ve kept a Javascript function printthis() for printing purpose that prints everything in the div id printthis except what is given with the class d-print-none. The code works fine in the opening page, the page before printing.

But upon clicking print, the page takes wrong alignment, means the table head appears in between 2 address divs like in the below link, I wanted the table head to appear after the address blocks like it appears in the page before printing.

How can I fix this? Can I get some help?

https://jsfiddle.net/vwsmf50e/

The full script & css is availble in the above link.

JavaScript

Advertisement

Answer

Give width:100% for bill-tab.

JavaScript
Advertisement