The height and width PropertiesThe height and width properties correspond to the HEIGHT and WIDTH HTML attributes of elements that support these attributes. You can see the support for these properties in Table 5.24. Table 5.24. The height and width Properties
These properties are measured in pixels or percentages, just as their corresponding HTML attributes. You can read themor write themin JavaScript. Tip Note that the height and width properties are not the same as the height and width properties set with an element's style property. |