> 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/17.latest/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/17.latest/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/17.latest/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
