Course lesson
Specifying Height and Width on the Canvas Element
Let's take a look at a bug you can run across, by not specifying height and width of your HTML canvas element. We will look at giving the canvas element a height and width property inline. We’ll also look at how we can alternatively give canvas those height...
- Duration
- 2 min
- Access
- Pro
- Transcript
- Available
Let's take a look at a bug you can run across, by not specifying height and width of your HTML canvas element.
We will look at giving the canvas element a height and width property inline.
We’ll also look at how we can alternatively give canvas those height and width properties right in our Javascript.