Click here to Skip to main content
15,899,474 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I can't find HTML code to create a watermark in C# using HTML code for the WebBrowser control. I want to have an image file, dimensions say 40x100 of png, to be faded behind the page's contents. This could possibly be at an angle or in a tiled form or at position:center.

Tried numerous variations from different sites and nothing seems to work. Please help, if possible, can working code be posted?
Posted
Updated 2-Feb-12 5:14am
v3
Comments
Sergey Alexandrovich Kryukov 1-Feb-12 2:02am    
Not clear. Where a watermark should go, what should be the behavior and purpose?
--SA
Rajesh Anuhya 1-Feb-12 2:02am    
Not a clear Question.
--RA

1 solution

Hi,

You can do that with HTML and CSS.
Search internet for background CSS property[^]
Here is simple solution with image positioned in bottom right corner of the browser window.
Add this css in head page section
HTML
body
{
background-image:url('YourImage.gif');
background-repeat:no-repeat;
background-position:right bottom;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900