[web] HTML5 canvas problem

Started by
1 comment, last by ElyasMachera 12 years, 9 months ago
Hi,
I just started learning HTML5 mainly because I need to know it..the problem is I am trying to move the canvas instead of the drawing inside the canvas...but I haven't been able to succeed in doing so!
How can one choose where to draw the canvas without using div layers?

I used div layer which was working fine..but the child layers into a parent div it got a messed up because the elements are relative to each other, and other positioning will render the div outside the parent div..I feel like shooting myself :(
So either I find a way to change the canvas x and y position or find a solution with div..please any suggestion guys.
Thanks
Advertisement
Maybe an example of your work / code will help me understand a little better, but

Have you tried making the parent container position relative and the canvas position absolute then you could position the canvas directly with CSS (left:10px/top:10px;) + Javascript ?
Found a way to move it thanks.

This topic is closed to new replies.

Advertisement