Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating watermark using html and css

What I need is to create cross website transparent watermark like this using only html and css. Have no idea how to keep that always in one place for ex: right bottom side of browser window.

Thanks in advance

enter image description here

like image 895
demonoid Avatar asked Jan 30 '14 13:01

demonoid


People also ask

How do you put a watermark on a website?

Right-click anywhere on the page to which you want to insert a background picture, and then click Page Properties. Click the Formatting tab. Select the Background Picture check box. Select the Make it a watermark check box.

How do I create a custom watermark?

First, create your custom watermark. On the Design tab, select Watermark > Custom Watermark. Choose Picture Watermark and select a picture, or choose Text watermark and type your watermark text in the Text box. Click OK.


2 Answers

#watermark {  position:fixed;  bottom:5px;  right:5px;  opacity:0.5;  z-index:99;  color:white; } 

jSFiddle

like image 143
ElendilTheTall Avatar answered Oct 04 '22 18:10

ElendilTheTall


To make it fixed: Try this way,

jsFiddleLink: http://jsfiddle.net/PERtY/

<div class="body">This is a sample body This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample bodyThis is a sample bodyThis is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     v     This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     This is a sample body     <div class="watermark">            Sample Watermark     </div>     This is a sample body     This is a sample bodyThis is a sample bodyThis is a sample body </div>    .watermark {     opacity: 0.5;     color: BLACK;     position: fixed;     top: auto;     left: 80%; } 

To use absolute:

.watermark {     opacity: 0.5;     color: BLACK;     position: absolute;     bottom: 0;     right: 0; } 

jsFiddle: http://jsfiddle.net/6YSXC/

like image 37
Arunkumar Srisailapathi Avatar answered Oct 04 '22 19:10

Arunkumar Srisailapathi