Stacks
Keep a group of things together on the grid. What a stack is, moving one, spacing, making your own, every setting in Arrange, and when to use a stack instead of the grid, on the Spoke & Chain template.
Steps
- Open the Spoke & Chain template if you’d like to follow along.
- Press G to see the grid. You can put anything anywhere on it.
- Some things, like these overlapping faces, belong together as a set.
- A stack is a container that lines things up in a row or a column.
- Drag the stack and everything in it comes along.
- Hover between two items and drag the spacing handle.
- Make one button longer and the other slides over to make room.
- Shift-click a few things, right-click and choose Create Stack.
- Switch between Side by side and Stacked in Arrange.
- Position sets where the group sits. Distribution sets how they share the space.
- Fill, Hug or Fixed sets how wide the stack itself is.
- Fill space stretches each item. Keep size leaves them as they are.
- If moving one means you’d move the others too, put them in a stack.
- The grid is where you put things. A stack keeps a group moving as one.
Read the full transcript
Let's talk about stacks. They're a handy way to keep a group of things together on your page, so they move and line up as one. I'm on the Spoke & Chain home page.
First, a quick reminder of how your page works. Press G, and there's the grid. Every section has one, and you can put anything anywhere on it. And as we saw in the last video, it adapts for you on phone, tablet and computer. Most of your page is built just like this.
But some things belong together. Take these rider photos. Five circles, each one tucked slightly behind the next. Placing those one at a time would mean lining them up by hand, and nudging them all again whenever you change your mind. So instead, they sit in a stack.
So what is a stack? It's what Milo calls a container, a box that holds other things. It's called a stack because it lines up whatever's inside it, either stacked one above the other, or side by side in a row. You can see it up here: Section, then Stack. On the grid, the whole stack is just one item, placed wherever you like. And inside it, everything stays together, with the same spacing and the same overlap.
Drag the stack somewhere new, and all five faces come along, still overlapping just like before. Think of it like a key ring. Wherever you set it down, the keys come with it.
Let me zoom in closer, so the spacing is easy to see. Hover between two of the faces, and there's the spacing handle. Drag it, and watch them move apart. They spread out, or tuck in closer, all by the same amount.
Now I'll drag the stack back down into its corner, where it looked best.
Stacks are great for buttons too. Up in the first section, these two buttons share a stack. Watch what happens when I make the first one longer. The second button just slides over to make room. Nothing overlaps, and nothing needs fixing.
You can make your own, too. Hold Shift and click a few things, then right-click and choose Create Stack. They line up side by side, in a row.
Remember how a stack can line things up side by side, or one above the other? You choose that here, in Arrange. These tags would look better stacked, so I'll switch them to a column.
Down at the bottom, Position sets where the group sits inside the stack. There are nine spots, so I'll move them over to the middle on the right.
Distribution is how they share the space. Spread apart pushes them out to the top and bottom. Notice that Position just went blank. Spread apart uses all the room, so there's no spot left for Position to pick. Equal around does the same, with even room around each one. And Equal gaps keeps them together, with the same gap between each. The extra room is left below them, so they sit at the top, and Position shows the top right.
Width is about the stack itself. Fill stretches it across the space it has on the grid. Hug shrinks it to wrap around the tags. I'll close the menu so you can see.
Now it fits snugly around them. Fixed locks the stack at its current width, so it won't stretch or shrink. Fill suits this photo, so I'll switch back.
The second Items setting is about the tags themselves. Fill space stretches each one to share the room, which is a bit much here, so I'll keep their size.
Last, I'll use Position to move them back to the middle on the right. And now they sit neatly down the side of the photo.
So when should you use a stack, and when should you just place things on the grid? Use the grid when each thing has its own spot, like a headline here and a photo over there. Reach for a stack when a few things belong together as a set, like a row of buttons, a cluster of faces, or a list of tags. A good rule of thumb: if moving one of them means you'd want to move the others too, put them in a stack.
So that's stacks. The grid is where you put things, anywhere you like. And when a few of them belong together, a stack keeps them moving as one. In the next video, we'll start on the pieces you build your page with, beginning with text.