7/7: HTML and CSS

A canvas element is just like other block elements like a div. You can stack it on top of other elements using absolute positioning values and the CSS parameter Z-index. In this example, the canvas is on top of most of the elements with an index of 10. All other elements have negative Z-indeces. I added some elements above and below the canvas to illustrate how it is definitely in Z space. Click on the buttons to see each part of this demo. This lesson was adapted from this demo: http://jakearchibald.com/scratch/alphavid/ Thanks! email: [email protected] for feedback!