INPUT /  OUTPUT /  LANGUAGE





align field

Vector field

Sets the horizontal and/or vertical alignment of content as displayed inside a presentation tag.

This field lets you to specify whether text and other content inside a presentation tag should be aligned to the left margin, right margin, top or bottom, centred, etc.

Applies to...

Sample usage

<box align={right} {This text is aligned to the right}> - Aligns the content of a box to its right margin.

<box width=console.width height=console.height align={center},{middle} {This text is in the middle of the screen.}> - Creates a box as large as the console frame and

Behaviour

The align field takes 1 or 2 text values as follows:

align={horizontal value}
...or...
align={horizontal value}, {vertical value}

For horizontal value, the following values are valid:

horizontal value interpretation
null Leaves the horizontal alignment unspecified.
{left} Content aligned against left margin, and ragged on the right.
{right} Content aligned against right margin, and ragged on the left.
{center} Content is centred; text is ragged on both sides.
{justify} Text is aligned on both sides.

For vertical value (if specified), the following values are valid:

Note:
Not all tags support vertical alignment.
Behaviour differs between container and non-container tags.
vertical value interpretation
null Leaves the vertical alignment unspecified.
{top} Content aligned to the top. This may be relative to the container or relative to surrounding content; the meaning depends on the tag it is applied to.
{middle} Content aligned to a common vertical centre. (The same caveat as for {top} applies.)
{bottom} Content is aligned to the bottom. (The same caveat as for {top} applies.)
{baseline} Content is aligned relative to the baseline of surrounding content. (The same caveat as for {top} applies.)

See also