0

My need is to have a watermark on row's table.

I use this code (link to jsfiddle) to have the watermark. This is working fine, but I have a click function on some td element and this is covered by watermark.

How update css to have click and watermark visible. z-index is not working :/

Thanks for your help.

1
  • edit with good jsfiddle project link Commented Jul 22, 2014 at 9:14

2 Answers 2

5

Set pointer-events: none; to the watermark. Then it works (http://jsfiddle.net/6YSXC/11/).

Sign up to request clarification or add additional context in comments.

1 Comment

Note that this won't work on IE 10 and less, nor on IE mobile 10.
0

Along with the z-index you need to add position: relative then it will works well

Demo

.click{
    position: relative;
    z-index: 20;
    cursor: pointer;
}

1 Comment

Nice solution too. But a little bit more complex to implement this in my real table.

Your Answer

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.