Editor X: Adding and Customizing a Stack

4 min read
Editor X is transitioning to Wix Studio, our new platform for agencies and freelancers.Learn more about Wix Studio
When elements are arranged above and below each other, you can stack them so they don't overlap in different screen sizes. Stacking adds a flex container around your elements and vertical margins that you can customize to your needs. 
In this article, learn how to:
Working with breakpoints:
Stacking and unstacking elements affect your site on all breakpoints. Learn more about changes that apply to all breakpoints

Creating and Setting Up a Stack

After designing elements in a certain composition, stack them together so they never overlap. You can equalize and customize the margins between your items and choose how they should be aligned from the Inspector panel.

To create and set up a Stack:

  1. Click the first element of your Stack.
  2. Hold down the Shift key and select all other elements that should be stacked.
  3. Click Stack.
  4. Customize the spacing between stack items and their alignment:
    1. Click the Inspector icon  at the top right.
    2. Enter a value in px or percentage next to Item spacing.
    3. Align your items to a certain direction: Left, Center, Right or Justify.
Tip:
Need to edit an individual element inside a stack? Double-click the element to adjust it. 

Adding and Removing Elements from a Stack

You can add any element to an existing stack by simply dragging it onto the stack. An Attach to Stack notification appears to let you know you are adding an element to the stack. 
To remove an element from a stack, just drag it out of the stack container.

Reordering Elements in a Stack

Change the order of the elements in the stack by dragging them to the new position inside the container.

Designing a Stack

A Stack creates a flex container around your element. The container is transparent by default, but you can design it to your needs: Choose a background color for your stack and set the borders, corners and shadow. 

To design a stack:

  1. Select the stack in the Editor.
  2. Click the Inspector icon  at the top right.
  3. Click the Design icon
  4. Design your stack using the available options:
    • Set the background color and its opacity.
    • Create and design the borders around your stack. 
    • Choose a radius for the corners.
    • Enable shadow and manage settings like its angle, distance, size, etc.

Unstacking Elements

You can unstack elements at any point. If you unstack elements, they are unstacked on all breakpoints.
Select the stack in the Editor, then click Unstack

Did this help?

|