# Aspect ratio relative to screen

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

## 👉 **The Tag** <a href="#the-tag" id="the-tag"></a>

The height of the container is calculated with the screen height, so they won't maintain the designed aspect ratio, but is useful when you want a container to be relative to the screen. (ex: container height is 100% of the screen in the design, it will appear 100% on any device screen).

**📍 Where to add the tag:** A second-level container

```
[aspectratio:screen]
```

![](/files/AVIxwq9VnPt8cYU8k8bt)

**How does it adjust your design to fit to any phone?**

Bravo renders components considering their dimensions in reference to the specific device dimensions. In other words, it uses percentages to adapt to each screen.

{% hint style="info" %}
If the design is not fitting the screen as intended, add a [splash screen](/bravo-tags/app-icon-and-splash-screen.md) in your Figma. The splash screen acts as a "default" size for Bravo to calculate the ratio of the other app pages.
{% endhint %}

## 🏷️  **How to add the tag** <a href="#how-to-add-the-tag" id="how-to-add-the-tag"></a>

1. Create your design on the default app page size.

&#x20;   2\. Add a container around the design.

&#x20;   3\. **Paste** the tag into the layer name of the **2nd-level container.**

![](/files/yqeq4VzrbVe5yIeE4TyY)

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

&#x20;   4\. Import to Bravo Studio & preview on Bravo Vision 🚀 (If you imported the app before, you just need to press the button Update in Bravo Studio to see the changes).

## 💾 Example files <a href="#example-files" id="example-files"></a>

Duplicate the files below to see how to set it up!

{% embed url="<https://www.figma.com/community/file/1362739745744253923>" %}


---

# 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.bravostudio.app/bravo-tags/containers/aspect-ratio-relative-to-screen.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.
