-2

How can I add a large faded text background via css?

please refer the above link. watermark is working with the solution provided. But i am printing the html page using window.print(). Only the first page is printed with background text. How can i repeat the text as background for all other pages which is printed.

Community
  • 1
  • 1
Raja Raju
  • 1
  • 2

1 Answers1

-1

You can use @media rule in your CSS allows you to target different media types, and screen sizes, from a single stylesheet. You can decide layout of printable page and accordingly hide and show elements from the page

  @media print {#header, #footer, #Toolbar{ display: none !important;} 
   }

This link might help you writing styles for printing.

Ranjeet
  • 7,722
  • 1
  • 13
  • 17
  • thanks for your reply !! i am using the background text only for my tbody. how is that possible.. – Raja Raju Apr 19 '16 at 09:49
  • if i use the background text for thead and tfoot and use the below code its working fine thead { display:table-header-group; } tfoot { display:table-footer-group; } but for tbody how can i print for all pages. – Raja Raju Apr 19 '16 at 09:50