Creator Docs

Container

A container holds other elements, such as images and texts. It shows nothing by itself. Use it to keep elements together, and to line them up in a row or a column.

When you move a container, the elements in it move too.

The layout editor on a phone with the Main Menu layout. The Elements list has a Container with 3 images in it. On the canvas, the 3 pictures stand in a column in the middle of the screen. The layout editor on desktop with the Main Menu layout. The Elements list has a Container with 3 images in it. On the canvas, the 3 pictures stand in a column in the middle of the screen.

Add a container

  1. Open a layout in the layout editor. See Open a layout.

  2. Open the Add Element menu.

    • Phone or tablet: Long press (touch and hold) the empty space under the Elements list.
    • Desktop: Right-click (click with the right mouse button) the empty space under the Elements list.
  3. Tap Container.

    The Add Element menu on a phone, open under the empty Elements list of the Main Menu layout. Container is marked. The Add Element menu on desktop, open under the empty Elements list of the Main Menu layout. Container is marked.

Container appears in the Elements list. It is empty, so the canvas does not show it yet.

Put elements in the container

This example puts 3 pictures in the container: box-1, box-2, and box-3.

  1. Open the menu of the container.

    • Phone or tablet: In the Elements list, tap the three dots button next to Container.
    • Desktop: In the Elements list, right-click Container.
  2. Under Add Element, tap Image. The Create Image box opens.

    The menu of the Container row on a phone, with the Add Element list. The three dots button next to Container and Image are marked. The menu of the Container row on desktop, with the Add Element list. Image is marked.
  3. Tap Select image. Your images open.

  4. Tap a picture, such as box-1. Then tap OK.

  5. Tap Create Image.

  6. Do steps 1 to 5 again for box-2 and box-3.

The images appear under Container in the Elements list. On the canvas, they sit on top of each other, in the top left corner.

The layout editor on a phone. In the Elements list, 3 Image rows are under Container. On the canvas, the 3 pictures sit on top of each other in the top left corner. The rows and the picture are marked. The layout editor on desktop. In the Elements list, 3 Image rows are under Container. On the canvas, the 3 pictures sit on top of each other in the top left corner. The rows and the picture are marked.

To move an element that is already in the layout, drag it onto the container in the Elements list. See Move a folder or item.

Line up the elements

  1. In the Elements list, tap Container. Its settings open.

  2. Under Layout, find Direction. Tap the right button.

    The settings of the Container on a phone. Under Layout, the right Direction button is marked. On the canvas, the 3 pictures stand in a column, marked. The settings of the Container on desktop. Under Layout, the right Direction button is marked. On the canvas, the 3 pictures stand in a column, marked.

The images now stand in a column, from top to bottom.

Direction What it does
Left button (Absolute) Each element stays where you put it. Elements can overlap. A new container starts with this.
Middle button (Horizontal) Puts the elements in a row, from left to right.
Right button (Vertical) Puts the elements in a column, from top to bottom.

For a row, tap the middle button instead. The images then stand side by side, from left to right.

The settings of the Container on a phone. Under Layout, the middle Direction button is marked. On the canvas, the 3 pictures stand in a row, marked. The settings of the Container on desktop. Under Layout, the middle Direction button is marked. On the canvas, the 3 pictures stand in a row, marked.

The top element in the Elements list comes first. To change the order, drag the elements in the list.

In a row or a column, the container places each element. So the elements in it have no Position X or Position Y.

Add space between the elements

  1. Under Layout, tap the box under Gap Y. A small box opens.

  2. Type 40.

  3. Tap Submit.

    The settings of the Container on a phone, with Gap Y set to 40, marked. On the canvas, the 3 pictures in the column have space between them, marked. The settings of the Container on desktop, with Gap Y set to 40, marked. On the canvas, the 3 pictures in the column have space between them, marked.

The images now have 40 pixels of space between them. For a row, use Gap X instead.

Put the container in the middle of the screen

  1. Under Transform, find Anchor. Tap the middle point.

  2. Change Position X to 960. Change it the same way as Gap Y.

  3. Change Position Y to 540.

    The settings of the Container on a phone. The middle Anchor point, and Position X 960 and Position Y 540, are marked. On the canvas, the column of 3 pictures is in the middle, marked. The settings of the Container on desktop. The middle Anchor point, and Position X 960 and Position Y 540, are marked. On the canvas, the column of 3 pictures is in the middle, marked.

The column is now in the middle of the screen. On a 1920 x 1080 screen, 960 and 540 are the middle. To learn more about Anchor, see Move and resize an element.

Container settings

Setting What it does
Direction Absolute, a row, or a column. See Line up the elements.
Gap X and Gap Y The space between the elements, in pixels. Only for a row or a column.
Width and Height Only for a row or a column. Auto makes the container as big as its elements. Fixed lets you type the size. Elements that do not fit go to a new row or column.
Scroll With Enabled and a Fixed size, elements that do not fit are cut off. The reader scrolls to see them, with a mouse wheel or a trackpad.
Child Interaction Makes the elements in the container react together. For example, a button can be a container with an image and a text. Tap +, then Hover. Now both show their hover look when the reader points anywhere on the button.

The other settings, such as Sound, Visibility, and Actions, are the same for most elements. See Change an element's settings.

Good to know

  • On the canvas, a tap on an element in a container selects the container. To select the element itself, tap it in the Elements list.
  • An empty container has no size, so you cannot tap it on the canvas. Tap it in the Elements list.
  • To hide or show the elements of a container in the Elements list, tap the arrow next to it.

Next steps