How about a layered canvas without an absolute

Hi everyone, I'm trying to create a multi-layered canvas, and what I came up with was something like

<canvas class="canv" id="fight_layer1" width="680" height="381"  style="position:relative;left:0;top:0;z-index:0">

I can’t use an absolute value that will ruin the layers if im includes the page on another, is there any other way besides this :)

+3
source share
1 answer

Try to put all your tags on the canvas inside the DIV with absolute positioning, then they are relatively located inside it.

Also for a multi-layer canvas see this script (may be useful): http://code.google.com/p/multi-layer-canvas/

0
source

All Articles