# RTL Layout

<figure><img src="/files/KLVa0mqtMHZHspuQROsk" alt=""><figcaption></figcaption></figure>

### Hide Element Based on Text Direction

To hide an element based on the text direction (RTL or LTR), you can use CSS or JavaScript:

#### **Using CSS:**

```css
[dir="rtl"] .element-to-hide {
    display: none;
}

[dir="ltr"] .element-to-hide {
    display: none;
}
```

#### **Hide element in content using CSS classes (HTML)**

To hide an element in your HTML content using CSS, you can apply specific CSS classes. Here’s a straightforward approach:

{% code overflow="wrap" lineNumbers="true" %}

```html
<p class="dir-ltr-hide">This paragraph is hidden on LTR, standard layout.</p>
<p class="dir-rtl-hide">This paragraph is hidden on RTL, right to left layout.</p>
```

{% endcode %}


---

# 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://rosea.gitbook.io/baztheme/getting-started/rtl-layout.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.
