Aligning group contained elements

Note

UI builder uses standard CSS terminology and concepts for group contained elements alignment.

The alignment of the contained elements in a group container element depends on the Justify and Align properties:

Note

For more information on CSS axis definitions and explanations, see the developer.mozilla.org page discussing the main axis and the developer.mozilla.org page discussing the cross axis.

Whether the main and cross axes are vertical or horizontal depends on the Mode property:

  • When the Mode property is set to Column, the main axis is vertical, and the cross axis is horizontal.

  • When the Mode property is set to Row, the main axis is horizontal, and the cross axis is vertical.

Therefore, alignment is controlled as follows:

  • When the Mode property is set to Column, Justify controls the vertical axis and Align controls the horizontal axis.

  • When the Mode property is set to Row, Justify controls the horizontal axis and Align controls the vertical axis.

Alignment property options

Examples

Mode = Column : Align item examples

Since Mode = Column, Align items controls the horizontal positioning of the contained elements.

../../../../../../../_images/ss-element-group-colalign.png

Mode = Row : Justify content examples

Since Mode = Row, Justify content controls the horizontal positioning of the contained elements.

../../../../../../../_images/ss-element-group-rowjustify.png

Mode = Row : Align items examples

Since Mode = Row, Align items controls the vertical positioning of the contained elements.

../../../../../../../_images/ss-element-group-rowalign.png