Layout & positioning

How layout works: rows, columns and grids

How layout works: rows, columns and grids

In TeleportHQ, you build the structure of a page from containers. A Row puts the elements inside it side by side. A Column stacks them from top to bottom. A Grid arranges them in rows and columns of cells, like a table. You can switch any container between these layouts later, in the Inner Layout section of the right panel.

The layout elements

You find the TeleportHQ layout elements in the left sidebar → Elements → Primitives tab → Layout group.

ElementWhat you getShortcut
RowA container as wide as its parent that places its contents side by side.R
ColumnA container 200px wide that stacks its contents vertically.C
GridA container with 2 equal columns. You add more rows and columns later.none
SeparatorA thin horizontal line, to divide sections. It can't hold other elements.none
Card railA ready-made section: a heading and a row of five cards that scrolls sideways. Its parts are ordinary elements you edit like any other.none
The Layout group in the TeleportHQ Elements panel, with the Row, Column, Grid, Separator and Card rail cards

To add one, drag it onto the canvas, or select a container and click the card. To use a shortcut, select a container and press the key. The new Row or Column goes inside it.

A new, empty Row or Column shows a dashed grey border so you can see it. The border goes away when you put the first element inside.

Rows and columns: side by side or stacked

Rows and columns in TeleportHQ are the same kind of container, pointed in a different direction. The web calls this "flexbox". Inside a row or column you control:

  • Direction: side by side or stacked.
  • Justify and Align: where the items sit, for example centered.
  • Gap: the space between items.
  • Wrap: whether items move to a new line when there isn't enough room.

Most containers on a page are rows or columns. For example, a hero section is often a column (heading, text, button stacked), and a feature strip is a row of three cards. Learn how in How to align and space items in a row or column.

Grids: rows and columns at the same time

A TeleportHQ grid places items in cells. Use a grid when items must line up in both directions, for example a gallery of 6 photos in 3 columns, or a pricing table. You set the number of columns in the right panel, and place each item with its Row and Column settings. See How to create a grid layout.

Switch a container's layout (Inner Layout)

Every TeleportHQ container can change its layout without being re-added.

  1. Select the container on the canvas.
  2. In the right panel → Visual tab, find the Inner Layout section. It comes after Size and Position.
  3. In the section's title row, click one of the three icon buttons: flex (row or column), grid, or block. Hover a button to see its name.
The Inner Layout section of a selected column in the TeleportHQ right panel, with the flex, grid and block buttons highlighted

Block means no special layout: elements stack in the normal way and there are no extra settings. When you switch type, TeleportHQ remembers the old settings and restores them if you switch back.

Dragging elements builds layout for you

When you drag an element in TeleportHQ, the editor often creates the layout for you:

  • Drop an element into an empty row or column at a spot, for example bottom right. The container's alignment is set to match.
  • Drop an element to the left or right of an element that sits in a column. The two are wrapped in a new row. A grey outline shows the row that will be created.
  • Hold Ctrl (Cmd on Mac) while dragging to drop inside an element instead of next to it.

See How to move and rearrange elements by dragging.

Size, spacing, position and visibility

Once the structure is in place, you fine-tune each element in TeleportHQ with these guides:

Good to know

  • Layout settings apply to the screen size you are editing and all smaller ones. This lets you show three cards in a row on desktop and stack them on mobile. See How to make your site look good on phones and tablets.
  • The right panel lists an element's sections in the same order every time. The layout sections come in this order: Size, Position, Inner Layout, Margin, Padding, and further down Visibility.
  • To make any container's contents scroll sideways, like the Card rail, select the container and turn on Scroll sideways in its Scroll behavior section. Then choose Snap items, Scroll with the wheel and Hide scrollbar.
  • To see the boxes that make up your page, turn on Grayscale Structure Mode.
  • To change a container's HTML tag (for example from div to section), use the Attributes section of the right panel.
Share

Related Articles

How to align and space items in a row or column

In TeleportHQ, select a row or column container and use the Inner Layout section of the right panel to set its Direction, Justify, Align, Gap and Wrap, which control how the items inside line up and how much space sits between them.

How to create a grid layout

In TeleportHQ, add a Grid element (or switch any container to grid in Inner Layout), set its Rows and Columns in the right panel, and place items in cells with the Row and Column settings.

How to position elements (Auto, Relative, Freestyle, Fixed, Sticky)

In the TeleportHQ editor, you position an element from the Position section of the right panel by choosing Auto, Relative, Freestyle, Fixed or Sticky, then setting its offsets and Z-index; Freestyle elements can also be dragged on the canvas, where they snap to their neighbours.

How to set an element's width and height

In TeleportHQ, select an element and type a Width and Height in the Size section of the right panel (in px, %, vw and other units), or drag the handles around the element on the canvas, where the edge snaps to the parent's and neighbours' edges.

How to add space around and inside elements

In TeleportHQ, add space outside an element with the Margin section and space inside it with the Padding section of the right panel, or drag the margin and padding handles on the canvas.

How to hide an element

In TeleportHQ, select an element and click the eye toggle in the Visibility section of the right panel (or right-click it and choose Hide); the element stays in your project but is hidden on the canvas and on your live site at that screen size and smaller.