This topic has not yet been rated - Rate this topic

width property

[This documentation is preliminary and is subject to change.]

Gets the width, in CSS pixels, of a given box of text.

HTML Canvas 2D Context, Section 11Internet Explorer 9

Syntax

JavaScript

p = object.width

Property values

Type: Floating-point

Width of the given text, in CSS pixels.

Standards information

See also

CanvasTextMetrics
measureText

 

 

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ