Canvas drawing

1<canvas id='canvas' width='300' height='300'></canvas>

Note that the width and height is not styling. It is the property we need to set it in canvas tag.

For styling, we still put it in CSS.

1canvas {
2  border: 1px solid #666;
4.ui-content {
5  text-align: center;

What’s next? We’re going to take a look at “Using canvas”.

overlaied image when clicked on thumbnail

Makzan | Mobile web app dev with phonegap | Table of Content