# Editor settings: size, position, layout, spacing and the close button

Canonical URL: https://support.optimonk.com/en/articles/editor-panel-settings

When you click something on the canvas in the **Editor**, the panel on the right shows its settings. This article explains the settings you meet most often: the popup's size and position, the dim overlay, layouts, element placement, spacing, hiding elements, and the ✕ close button.

💡 On a popup marked **Shared design: desktop + mobile**, text, images, colours and fonts change in both views, but sizes, spacing, position and hiding change only in the view you are editing. Switch to the other view and check it too.

---

## Where do I find the list of elements?

Until you select something, the panel shows **Elements on this page**: every element of the page you are looking at, in order. Click a row to select that element; hover a row to see it outlined on the canvas.

Each row has buttons to move it (the up and down arrows swap it with the element next to it), to hide it (**Hide element**) and to delete it (**Delete element (Delete)**). An element always stays inside its own box. A box that holds other elements has an arrow to **Collapse** or **Expand** it.

A hidden element cannot be clicked on the canvas, so it stays in the list, crossed out, with a **Show** button to bring it back. A text you emptied stays in the list too, named *Text (empty)*.

---

## How do I hide an element on mobile or desktop only?

Select the element and click the eye icon at the top of its panel. On a popup marked **Shared design: desktop + mobile**, hiding works per view: the button says **Hide on mobile** in the mobile view and **Hide on desktop** in the desktop view. In **Elements on this page** the row then shows *Hidden on mobile*, *Hidden on desktop* or *Hidden in both views*.

The ✕ close button is required on every page, so it cannot be hidden or deleted.

---

## How do I change the popup's size and position?

Click the popup's card (the element named **Card**). Its panel has:

- **Size** — **Width (clamp-preserving)** in px and **Corner radius** in px. If the popup has a maximum height, it is shown here as **Max height** for information.
- **Background** — the card's **Color** and its background picture.
- **Position above dim** — a 3×3 grid. Click a square to place the popup in a corner, at the middle of an edge, or in the centre of the screen. The position is set separately for the desktop and the mobile view.

---

## How do I change the dim overlay behind the popup?

Click the darkened area around the popup (**Dim overlay**). In the **Dim overlay** section you can switch it on or off, and set its **Color** and **Opacity** (%).

A full-screen popup covers the whole screen, so there is nothing behind it to dim. In that case the panel says so, and you set the popup's own background on the canvas instead.

---

## What does the Layout section do?

Click a box that holds other elements (a **Container**). Its **Layout** section shows:

- **Direction** — whether the elements inside sit in a **Row**, a **Column** or a **Grid**. This is shown for information.
- **Gap** — the space between the elements inside, in px.
- **Padding** — the space between the box's edge and its content, in px.
- **Alignment** — a 3×3 grid that places the content inside the box.

On a full-screen popup the outermost box fills the screen, so it has no layout to set; set the layout of the boxes inside it instead.

---

## How do I set an element's width and alignment?

Many elements have an **Element placement** section:

- **Width** — **Automatic**, **Full width** or **Custom (px)**. With **Custom (px)**, type the width into **Width (px)**; it cannot be wider than the box the element sits in.
- **Alignment** — **Automatic (container)**, **Left**, **Center** or **Right**. This option appears when the width allows it, for example not with **Full width**.

---

## How do I add space below an element?

Use **Spacing below** in the element's **Spacing** section, in px. It pushes the elements under it down.

If an element is placed freely (absolutely positioned), the panel tells you that spacing below doesn't move other elements. Drag that element to move it.

---

## How do I set up the ✕ close button?

Click the ✕ on the canvas. The **Close behavior** section has:

- **Show the ✕ after** — a delay in seconds. Until it passes, the ✕ is hidden, and closing with Esc or an outside click does not work either.
- **Close with the Esc key** — on or off.
- **Close on outside click** — on or off. When it is on, choose the **Outside-click devices**: **Mobile only**, **Desktop only** or **Desktop and mobile**.

The Editor never hides the ✕ for the delay, so you can still select and style it. Save, then open the preview to watch the delay play out.

---

## Don't forget to save

Press **Save** when you are done. On a live campaign, saving puts the change live.
