0

I have a web page(INVOICE) which is looks like this

enter image description here

I had used html, css and php to create this page. I am printing this page from java script with

windows.print();

this whole page is in TABLE tag. when the content is more than one page the page look like this, I need a border-bottom when two page breaks, please help me.

thanks in advance

Mr. Go
  • 567
  • 1
  • 5
  • 20

1 Answers1

0

Read about page breaks in css. They could lead you into the right path.

http://css-tricks.com/almanac/properties/p/page-break/

also read this answer https://stackoverflow.com/a/8712756/406659

<style type="text/css">
   table { page-break-inside:auto }
   tr    { page-break-inside:avoid; page-break-after:auto }
</style>
Community
  • 1
  • 1
aWebDeveloper
  • 36,687
  • 39
  • 170
  • 242
  • thanks for your reply, I had use page break which works perfectly in Firefox but not in Chrome,so need another solution for that – Mr. Go Dec 30 '14 at 07:27
  • seamsto work in chrome 30+ but if not look at this http://stackoverflow.com/a/25367919/406659 – aWebDeveloper Dec 30 '14 at 07:30