width property
Gets the width, in CSS pixels, of a given box of text.
![]() ![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: number
Width of the given text, in CSS pixels.
Standards information
- HTML Canvas 2D Context, Section 11
See also
Show:
Gets the width, in CSS pixels, of a given box of text.
![]() ![]() |
| JavaScript | |
|---|
Type: number
Width of the given text, in CSS pixels.