# Stack elements A Stack groups multiple elements into a container that arranges them automatically — horizontally or vertically — keeping them from overlapping or drifting apart as the screen resizes. **Best fits for:** * Lining up a row or column of elements (icons with labels, a feature list, a button group) that should reflow automatically * Keeping consistent spacing between elements without re-measuring each time you add or remove one * Building a layout where hiding one element lets its neighbors fill the gap automatically ## Why use a Stack Positioning elements manually means re-checking their position on every device, every time something changes. A Stack removes that maintenance work — set the Direction and spacing once, and Auto layout keeps every child correctly placed as you add, remove, reorder, or resize elements, without touching anyone else's settings. You might find this helpful: [Check and adjust mobile view](https://docs.foxecom.com/foxify-app/guides/build-your-store-pages/check-and-adjust-mobile-view) ## How to create a Stack 1. Click the element you want in the Stack. 2. Hold **Shift** and click the other elements you want to add. 3. Choose **Stack vertical** or **Stack horizontal** from the toolbar that appears. You can change this to **Wrap** afterward via Auto layout in the [Inspector panel](https://docs.foxecom.com/foxify-app/foxstudio/editor-tools/inspector-panel). Shortcut: `Cmd+Enter` (Mac) / `Ctrl+Enter` (Windows) stacks the selected elements.