top of page

Studio, Partners & Enterprise

Wix Studio

Studio Editor: Stacking Elements


Stacking elements is a quick way to organize your design with consistent spacing, creating a clean and polished layout. A stack is a flexbox container that "hugs" a group of elements—ensuring they stay in order (with the spacing you define), and never overlap.


Having said that, you can use negative margins to make elements overlap intentionally.



Dealing with overlapping elements?


Review our troubleshooting video to learn what to check and how to resolve this issue.



Applying a stack


When elements are placed next to each other (in the same parent element), the option to stack them appears. Based on the order you place elements in, you can stack them either horizontally or vertically.


Good to know:


  • If the elements are placed in a square shape (e.g. 2 x 2 elements), both the vertical and horizontal stack options are available for you to choose from.

  • You can use the Responsive Checker to spot opportunities to stack adjacent elements, ensuring they never accidentally overlap.


To apply a stack:


  1. Go to your editor.

  2. Align the elements you want to stack together.

  3. Select one of the elements.

  4. Hover over the Stack icon

    Studio Editor: Stacking Elements

    (horizontal) /

    Studio Editor: Stacking Elements

    (vertical) to preview how the stack will look.

    Note: The available stack icons (horizontal or vertical) depend on how you've aligned the elements.

  5. Click the Stack icon to apply it.

  6. (Optional) Drag the line between the elements to set margins.


The cursor is hovering over the vertical stack icon, previewing a stack of two text elements.

Did you know?


  • You can also stack elements by multi-selecting them on the canvas, and clicking Stack in the Inspector.

  • You can create negative margins to make elements overlap intentionally.


Dragging the stack margins to the opposite direction to create an overlap between the image and text


Switching between horizontal and vertical stack


Don't like the layout of a stack? You can always switch it from horizontal to vertical (and vice versa) to align them how you want. This automatically rearranges the elements so they're in the right order.


To switch a stack's layout:


  1. Select the stack in your editor.

  2. Click the dropdown.

  3. Select Horizontal or Vertical.


The orientation drop-down is open on a stack. The cursor is clicking 'Vertical'.


Managing a stack


You can customize the stack to match new content and requirements. Add more elements to the stack, move them around in a click of a button, and detach elements that are no longer needed.


To manage a stack:


  1. Go to your editor.

  2. Select the relevant stack.

  3. Choose what to do next:


You can add any element to an existing stack by dragging it near or onto the stack. An Attach notification appears to let you know you are adding an element to the stack.

Cropped screenshot of a text element being dragged onto a stack. The Attach message is displayed.

You can also simply drag the element close to the existing stack, then click the Add to stack icon

Studio Editor: Stacking Elements

(horizontal) /

Studio Editor: Stacking Elements

(vertical) to add it.

Cropped screenshot showing text beside a stack. The cursor is clicking the Add to Stack button.

To detach an element from a stack, just drag it anywhere outside of the stack.

You can also select the element and click the More Actions icon

Studio Editor: Stacking Elements

. Then, click Detach from Stack.

Cropped screenshot showing the cursor clicking Detach from Sack in the more actions menu of a button.

  1. Select the relevant element in the stack.

  2. Depending on the stack layout (vertical or horizontal), click the Move Up

    Studio Editor: Stacking Elements

    / Move Down

    Studio Editor: Stacking Elements

    , or the Move Left

    Studio Editor: Stacking Elements

    / Move Right

    Studio Editor: Stacking Elements

    icons.

Cropped screenshot highlighting the move up and down arrows on a button in a stack.

Select the stack in the editor, then click Unstack.



Designing a stack


The stack does not have to be transparent – you can design it to make the content stand out on the page. Add a background color, border and shadow. You can also make the stack corners more round or square.


To design a stack:


  1. Go to your editor.

  2. Select the relevant stack.

  3. Click the Open Inspector icon

    Studio Editor: Stacking Elements

    at the top right of the editor.


A screenshot of opening the Inspector panel in the Studio Editor.

  1. Use the available options under Design to customize the stack:

    • Set the background color. You can also adjust its opacity, and add a glass effect.

    • Add a border to frame the stack.

    • Choose a radius for the corners.

    • Enable shadow and manage settings like its angle, distance, size, etc.


A screenshot of the inspector panel showing the design options for a stack. The cursor is adjusting the glass effect.

Tip:


You can also adjust the corners of the stack by dragging the radius handle on the canvas.


A cropped view showing the radius handle on a stack.


Adjusting the stack layout


Adjust the stack layout to ensure that every element is spaced, aligned, and padded in a way that suits your creative vision or client’s needs.


To adjust the stack layout:


  1. Go to your editor.

  2. Select the relevant stack.

  3. Click the Open Inspector icon

    Studio Editor: Stacking Elements

    at the top right of the editor.


A screenshot of opening the Inspector panel in the Studio Editor.

  1. Scroll down to Layout.

  2. Use the available options to adjust the stack layout:

    • Switch the stack layout from Horizontal to Vertical or vice versa.

    • (Horizontal only) Switch the direction from Left to Right to Right to Left or vice versa.

    • Enter a value under Item spacing to create equal margins between the stack elements (i.e. items).

    • Choose an alignment for the stack items: Left, Right, Center or Justified.

    • Add padding to the sides.


A stack on the canvas next to the Inspector panel, highlighting the layout section

Did you know?


You can adjust the padding and spacing directly on the canvas. Drag the line between elements, or double-click the line if you prefer entering a precise value. You can even switch the size unit if needed.


A cropped screenshot, showing the cursor clicking and adjusting the stack's spacing.

Need An AI Run Website?
Contact Us
 Today!

wix experts
Graphic2Traffic web design
©
bottom of page