> For the complete documentation index, see [llms.txt](https://docs.umbraco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.umbraco.com/umbraco-cms/model-your-content/property-editors/built-in-umbraco-property-editors/rich-text-editor/css-properties.md).

# Custom CSS Properties

Customize the appearance of the Rich Text Editor with custom CSS properties.

You can customize the appearance of the Rich Text Editor using CSS properties by defining them in your CSS files.

For example, to set the minimum height of all Rich Text Editors throughout the backoffice. You could use the following CSS rule:

```css
:root {
    --umb-rte-min-height: 300px;
}
```

For general information on working with stylesheets and JavaScript in Umbraco, check [Stylesheets and JavaScript](/umbraco-cms/develop-with-umbraco/templating-and-rendering/design/stylesheets-javascript.md).

If you wanted to target a specific Rich Text Editor, you can set the [stylesheet directly in the configuration](/umbraco-cms/model-your-content/property-editors/built-in-umbraco-property-editors/rich-text-editor/configuration.md#stylesheets).

## Custom CSS properties reference

The following CSS properties are available for customization:

| CSS Property           | Description                                | Default Value |
| ---------------------- | ------------------------------------------ | ------------- |
| `--umb-rte-width`      | The width of the rich-text-editor          | `unset`       |
| `--umb-rte-min-width`  | The minimum width of the rich-text-editor  | `unset`       |
| `--umb-rte-max-width`  | The maximum width of the rich-text-editor  | `100%`        |
| `--umb-rte-height`     | The height of the rich-text-editor         | `100%`        |
| `--umb-rte-min-height` | The minimum height of the rich-text-editor | `100%`        |
| `--umb-rte-max-height` | The maximum height of the rich-text-editor | `100%`        |

The CSS custom properties may change in future versions of Umbraco. You can always find the latest values in the [Rich Text Editor component base class](https://github.com/umbraco/Umbraco-CMS/blob/main/src/Umbraco.Web.UI.Client/src/packages/rte/components/rte-base.element.ts) in the Umbraco CMS GitHub repository.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.umbraco.com/umbraco-cms/model-your-content/property-editors/built-in-umbraco-property-editors/rich-text-editor/css-properties.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
