In html 5, how to positioning a div element on top of a canvas element?
Posted
by Unraised
on Stack Overflow
See other posts from Stack Overflow
or by Unraised
Published on 2010-04-20T00:02:44Z
Indexed on
2010/04/20
0:23 UTC
Read the original article
Hit count: 946
html5
Hi. Can anyone help me: I'm trying to put a div (say, 10px by 10px) element on top (in front) of a canvas element (say 500px by 500px) in html. I have tried changing the z-index of each, to no avail. Does anybody have any ideas, or is it one of those things that you can't really do? I already know how to do absolute positioning and everything, the div element just hangs out in the background behind the canvas element. I need a way to bring it to the front and the canvas element to the back.
Thanks!
© Stack Overflow or respective owner