I have a DIV overlapping a CANVAS element.
In the HTML, though the DIV appears after the CANVAS, the DIV
appears under the CANVAS.
If I set the DIV's z-index anywhere from 1 to 10000 and the CANVAS
to 0 the CANVAS stays on top.
If I don't set the DIV's z-index but set the CANVAS to -1 the DIV is
now on top.
Is there some trick to getting CANVAS to honour a z-index of 0? I'd
rather not set it to -1 because it'll affect other elements ie there
are elements the CANVAS needs to be over.
In Message: <mcudnQX2-6kQQK3CnZ2dnUU7-SnNnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
I have a DIV overlapping a CANVAS element.
In the HTML, though the DIV appears after the CANVAS, the DIV
appears under the CANVAS.
If I set the DIV's z-index anywhere from 1 to 10000 and the CANVAS
to 0 the CANVAS stays on top.
If I don't set the DIV's z-index but set the CANVAS to -1 the DIV
is now on top.
Is there some trick to getting CANVAS to honour a z-index of 0?
I'd rather not set it to -1 because it'll affect other elements ie
there are elements the CANVAS needs to be over.
Can you provide an example that can reproduce this behavior?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 32:22:12 |
Calls: | 6,648 |
Calls today: | 3 |
Files: | 12,193 |
Messages: | 5,328,598 |