1

I want to show the watermark with the combination of text and image on each page in Firefox browser.

i have added the watermark image and then text in one div first image and then after this text will appear.

this is running well in chrome and IE.

When i want to print in Mozilla then all watermark appear on first page instead of each page.

I know the cause as in the css postion : absolute is causing the issue but what css i have to apply if i change this then its not come as watermark.

 <div class="watermark">
 <div><img src="/images/watermark_logo.png" /></div>
 <div class="watermark_text">
 printed from test site
 by site
 </div>
 </div>
 .watermark_text
 {
 width: 100%;
 color: #d0d0d0;
 font-size: 5.5em;
 text-align: center; 
 margin: 0 auto;
 z-index: 10000;
 opacity: 0.2;
 filter: alpha(opacity=15);
 white-space: normal;
 word-wrap: break-word !important;
 overflow: visible;
 }
 .watermark
 {
 display:block;
 z-index: 99999; 
 width: 86%;
 position:absolute;
 text-align:center!important;
 }
 .watermark img
 {
 opacity: 0.2;
 filter: alpha(opacity=15);
 }

Can any one help me?

Thanks in advance...

asked Oct 28, 2013 at 12:13
2
  • Too lazy to code up a proper answer here, but I wonder if an alternate approach might be to have the watermark as the background-image of a div, and set the background-repeat property to the height of an a4 sheet? Commented Oct 28, 2013 at 13:26
  • Hi, thanks for your response but image is also not coming as watermark without postion: absolute css property and this property not showing the image properly in firefox print optin.Can you give me any working link in which watermark image work on firefox print for each page. Commented Oct 28, 2013 at 15:48

1 Answer 1

1

Change your position: absolute to position: fixed and it will then render on each page

answered Nov 11, 2013 at 14:12
Sign up to request clarification or add additional context in comments.

1 Comment

+1 although this doesn't work in all browsers see this link

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.