Element Alignment and Spacing

Modify the alignment and spacing between elements.

Topics

Element Alignment

text-align

Aligns text horizontally in an element.

tv-align

Aligns an element horizontally inside its parent.

tv-content-align

Aligns an element vertically inside its parent element.

tv-position

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

Element Spacing

margin

Specifies the spacing around an element.

padding

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

tv-focus-margin

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

tv-interitem-spacing

Specifies the spacing between child elements.

tv-line-spacing

Specifies the amount of space between lines of text.

See Also

Styles

Color Styles

Provide the ability to customize an element's color.

Text Styles

Change the text characteristics for an element.

Element Shaping

Modify the size and shape of an element.

tv-placeholder

Sets a default image for an img or monogram element.

tv-rating-style

Sets the displayed image for rating a product.

tv-transition

Specifies how an element transitions on and off the screen.

tv-text-highlight-style

Specifies how an element looks when it comes into focus.

tv-scrollable-bounds-inset

Creates an unscrollable region of a specified size at the top and bottom of the stack template.