Blog · Tips & tricks

Hug, fill or fixed: getting flow layout right

How rows, columns and grids size their contents, when to hug, fill or fix a size, and how to build slides in SCORMCraft that grow with your text and reflow on phones.

Most slide tools place every box at an exact spot. That works until the text changes. Add a sentence and it spills out of its card; translate the course and half the slides need fixing by hand.

Flow layout works the other way. You put blocks in a row, a column or a grid, and the container decides where they go. SCORMCraft’s rows, columns and grids hug or fill, much like auto layout in Figma. Change a sentence and the card grows.

Getting good results comes down to one question for every block: how big should it be?

Three ways to size a block

Every flow layout system answers that question in one of three ways.

  • Hug: as big as its content. A button that hugs its label gets wider when the label gets longer. A card that hugs its text gets taller when you add a line.
  • Fill: as big as the space its container gives it. Three cards that fill a row share the width between them.
  • Fixed: a set size that ignores both. Useful for an icon, a thumbnail or a logo that must stay exactly one size.

Width and height are separate choices, and the right answer is often different for each. In SCORMCraft, select a block and open Format in the status bar: the Format pane holds every setting for the selection.

Rules of thumb

These settings cover most slides:

BlockWidthHeight
A card in a row of cardsFillHug
A heading or paragraphFillHug
A buttonHugHug
An icon or logoFixedFixed
The column holding a slide’s contentFillHug

The pattern: fill across, hug down. Text needs a width to wrap to, and then it should be as tall as it needs to be.

A few things that go wrong:

  • Fixed height on anything with text. It looks fine in English and clips in German. If it holds words, let the height hug.
  • Everything set to hug in a row. The row is only as wide as its contents, so it sits in the middle of the slide with gaps either side. Let the cards fill.
  • Fill inside a container that hugs. If the container is sized by its contents and the contents are sized by the container, neither has anything to go on. Give one of them a real size.

Rows, columns or grid?

  • Row: side by side. Cards, a picture next to its text, a pair of buttons.
  • Column: stacked. A heading, a paragraph and a button, or a list of steps.
  • Grid: rows and columns at once, for an even set of cards or icons.

Real slides nest them. A typical content slide is a column (heading, then body), where the body is a row (picture, then a column of text and a button).

Building one in SCORMCraft

  1. Add your blocks: Text, a picture with Add a picture, a Button.
  2. Select the blocks that belong side by side, holding ⌘ or Shift as you click.
  3. Open the row/column menu in the toolbar and choose Wrap selection in row. For stacked blocks, choose Wrap selection in column.
  4. For an even set of cards or icons, add a Grid container from the same menu.

See Adding content for the toolbar.

To check the structure, open Layers in the status bar. The Objects list indents blocks inside a row, column or group under it, so you can see at a glance what’s inside what. See Layers.

Two things behave differently inside a container:

  • Blocks in a row, column or grid can’t be grouped. The container already holds them together. See Formatting blocks.
  • Position is the container’s job. If you want a shape somewhere specific for a deliberate overlap, such as a decorative circle behind a heading, place it freely outside the flow. SCORMCraft supports free placement alongside flow layout for exactly that.

Test it by changing the words

The quickest test of a flow layout is to break the content on purpose:

  • Paste a paragraph twice as long into one card.
  • Make a button label three words longer.
  • Delete a card from a row of three.

If anything clips or overlaps, look for a fixed size that should hug.

Check it on a phone

Click Phone in the status bar. A slide built from rows and columns becomes one column the learner scrolls, like a web page. Any other slide keeps its shape and shows small, with space above and below, and the note beside the phone says which kind your slide is. See The editor at a glance.

When columns stack, the first block in a row comes first. Put blocks in reading order, heading before picture if that’s how it should read. Our guide to responsive eLearning on phones covers more.

Flow layout and AI-built slides

Flow layout is also why slides built with AI stay editable. SCORMCraft’s AI authoring guide teaches a model to lay content out with rows, columns and grids rather than coordinates. The slides use the same flow layout as the studio’s own designs, so when a person opens one and changes a sentence, the card grows instead of the layout breaking.

Start with one slide you already have. Once it survives a longer sentence, you’ll stop placing boxes by hand.

Leave Articulate. Keep every course.

Import a Storyline file or a SCORM package, or start from a template. Free and open source, with nothing to renew.