Skip to main content

Box Layout: Direction and Alignment

In Studio.Design, pages are built by stacking boxes. Adjust box layout by setting the direction on the parent box and the alignment of child boxes. Select a parent box to configure spacing and direction.

Point: Parent and Child Boxes

Layouts in Studio.Design are built using parent-child box relationships. You adjust layouts by selecting a parent box and configuring the direction and alignment of its child boxes.

Where to Set Box Direction and Alignment

You can set box alignment using the direction and alignment menu on the screen, or from the [Direction] and [Alignment] sections under the [Box] tab in the right panel.

*The menu won't appear for boxes that don't contain any child boxes.

Setting from the Screen

Select the parent box of the box you want to adjust, and a menu will appear at the top.

Screenshot: Adjusting layout using the alignment menu.

Tips: To edit items like lists or components, double-click them, or click and then press Enter.

Screenshot: Double-clicking a list frame.

Setting from the Right Panel

  1. Select the parent box of the box you want to adjust.

  2. In the right panel, select the [Box] tab.

    If the panel isn't visible, open the right panel.

  3. Configure the settings using the [Direction] or [Alignment] fields in the [Layout] menu.


Box Direction

Set the direction in which boxes are arranged using the arrow direction icons.

Selecting the wrap icon

enables automatic wrapping. When the parent box becomes too narrow to fit all child boxes, they'll automatically wrap to the next line.

GIF: Boxes wrapping automatically when wrap is enabled.

Box Alignment

Specify alignment for both horizontal and vertical directions.

Alignment Options by Direction

The available alignment options depend on whether child boxes are arranged horizontally or vertically:

Box Direction

[Horizontal] Alignment Options

[Vertical] Alignment Options

Horizontal,
Wrap

Left / Center / Right / Space Between / Space Around

Top / Center / Bottom / Stretch

Vertical

Left / Center / Right / Stretch

Top / Center / Bottom / Space Between / Space Around

Space Between and Space Around

These options distribute child elements evenly within the parent element and are useful when you want spacing between child elements to adjust automatically.

Space Between (space-between) places child elements flush against both edges, with equal spacing in between.

Space Around (space-around), on the other hand, distributes spacing evenly including margins on both edges.

Stretch

Stretch automatically expands elements to match the height of the parent element.

This is useful when child elements have different heights — their heights will adjust to match the parent element.

Point: When using Stretch, make sure the height of child elements is set to auto.

Screenshot: Adjusting layout using the alignment menu.

Did this answer your question?