<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/element-shaping-width",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "width"
}
-->

# width

Specifies how wide an element is.

## Overview

Use the `width` style to change the width of an element. Here’s an example that sets
the width of an img element to 250 points.

```xml
<img src="path to image" width="250" height="376" />
```

### Values for width

- Integer: The width of the element, in points. For example, `width="200"` sets
  the width of the element to 200 points.

> Note: You must explicitly set this style for custom cell elements provided by your
> app binary.

### Elements that Use width

- [activityIndicator](/documentation/TVML/activityindicator)
- [buttonLockup](/documentation/TVML/buttonlockup)
- [description](/documentation/TVML/description)
- [header](/documentation/TVML/header)
- [heroImg](/documentation/TVML/heroimg)
- [img](/documentation/TVML/img)
- [infoTable](/documentation/TVML/infotable)
- [itemBanner](/documentation/TVML/itembanner)
- [list](/documentation/TVML/list)
- [lockup](/documentation/TVML/lockup)
- [monogram](/documentation/TVML/monogram)
- [reviewCard](/documentation/TVML/reviewcard)
- [stack](/documentation/TVML/stack)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)