# Menu with masonry grid

Pack the items of a mega menu or a tab into columns with no gaps, like a Pinterest board, when they have different heights.

In a mega menu, items flow in rows: a short item next to a tall one leaves a gap below it until the next row starts. A **masonry grid** stacks each column on its own, so every item moves up to fill the space. It suits menus with many images of different heights.

**Without masonry grid** — each row is as tall as its tallest item:

![Screenshot: A mega menu without masonry grid: gaps under the shorter items]()

**With masonry grid** — items move up into the gaps:

![Screenshot: The same mega menu with masonry grid: the columns are packed]()

## Turn it on

**In the new editor:**

1. In the **Layers** tree, click the main item (or the tab, in a tab menu). Its card opens under the tree.
2. Scroll the card down and turn on **Enable masonry grid**, just below **Enable schedule**.

   ![Screenshot: The new editor: the main item selected in the Layers tree, and in its card the Enable masonry grid switch, outlined in red, with the Products item outlined in the preview]()

3. Click **Save** (or **Save & Publish** on a live menu) and check your storefront.

**In the classic editor:**

1. Click the main item (or the tab, in a tab menu) in the preview, then the pencil icon.
2. Scroll down and turn on **Enable masonry grid**.

   ![Screenshot: The classic editor: the main item's options scrolled down, with the Enable masonry grid switch outlined in red, under Enable schedule]()

   ![Screenshot: Enable masonry grid switched on: See changes on the online store]()

3. Click **Save** (or **Save & Publish** on a live menu) and check your storefront.

:::note
The editor preview keeps the normal rows, so you can still drag items into order. The masonry layout shows on your storefront only.
:::
