<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/element-alignment-and-spacing",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Element Alignment and Spacing"
}
-->

# Element Alignment and Spacing

Modify the alignment and spacing between elements.

## Topics

### Element Alignment

[text-align](/documentation/TVML/text-align)

Aligns text horizontally in an element.

[tv-align](/documentation/TVML/tv-align)

Aligns an element horizontally inside its parent.

[tv-content-align](/documentation/TVML/tv-content-align)

Aligns an element vertically inside its parent element.

[tv-position](/documentation/TVML/tv-position)

Sets the position of an element inside of its parent element.

### Element Spacing

[margin](/documentation/TVML/margin)

Specifies the spacing around an element.

[padding](/documentation/TVML/padding)

Specifies the padding between the border and contents of an element.

[tv-focus-margin](/documentation/TVML/tv-focus-margin)

Specifies the amount of space required for a custom cell element in focus.

[tv-interitem-spacing](/documentation/TVML/tv-interitem-spacing)

Specifies the spacing between child elements.

[tv-line-spacing](/documentation/TVML/tv-line-spacing)

Specifies the amount of space between lines of text.



---

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)