# Modal Style

The Modal Style properties allow you to customise the look and feel of the modal window, for example: Overlay colour, Height, Width, Position.

<figure><img src="https://lh3.googleusercontent.com/BMQImFqRKtEPCP8SK48fGzNRnn2IChwx93tUXX8i0DhYVmPBuNzd4ozgEcxwu6NktckNmD5UyDIQCj8jhr_9GMGhm0oAp2jlN9vmRxKYRBy9hwDVspbtmS2hBowxqjpScalNbh4uGZz3NgEPOniBr2pksE03Q80YshiqU0wtN8198pwmE9hQK5fOeBMs6Q" alt=""><figcaption></figcaption></figure>

## Overlay Colour

The `Overlay Color` property allows you to specify the colour that will be applied to the overlay that covers the page content.

<details>

<summary>Select overlay colour</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal StyleTab
5. Find O. (overlay) Colour property
6. Open the color picker by clicking on the color circle
7. Select your color in the color picker or click on a global color
8. Select a gradient if required by clicking on Gradient icon (radial or linear)

</details>

<details>

<summary>Reset overlay colour</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal StyleTab
5. Find O. (Overlay) Colour property
6. Click dot to reset

</details>

## Height

The `Height` property allows you to specify the height of the modal element itself.

<details>

<summary>Modify height</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal Style Tab
5. Find height
6. Modify height

</details>

<details>

<summary>Reset height</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal Style Tab
5. Find height
6. Click dot to reset

</details>

## Width

The `Width` property allows you to specify the width of the modal element itself.

<details>

<summary>Modify width</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal Style Tab
5. Find width
6. Modify width

</details>

<details>

<summary>Reset width</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal Style Tab
5. Find width
6. Click dot to reset

</details>

## Align

The `Align` property allows you to specify the vertical position of the modal element inside your page, such as flex-start, center, flex-end, stretch, baseline.

<details>

<summary>Modify align</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal Style Tab
5. Find align property
6. Select desired value (flex-start, centre, flex-end, stretch, baseline)

</details>

## Justify

The `Justify` property allows you to specify the horizontal position of the modal element inside your page, such as: flex-start, centre, flex-end, space-between, space-around.

<details>

<summary>Modify justify</summary>

1. Click on the ➕ ​​icon to open the [Inserter Panel](https://docs.cwicly.com/gutenberg/inserter-panel/)
2. Search for the Cwicly Modal block
3. Click on the Cwicly Modal block to insert it into your page
4. Open Modal Style Tab
5. Find justify property
6. Select desired value (flex-start, centre, flex-end, space-between, space-around)

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cwicly.com/blocks/modal/modal-style.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
