> For the complete documentation index, see [llms.txt](https://docs.uibakery.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uibakery.io/how-tos/components-recipes/100-height-components.md).

# 100% height components

{% hint style="success" %}
Here, we talk about the [Flex Container](/reference/working-with-components/flex-container.md) component.
{% endhint %}

Let's say you need two components to occupy the whole space of the page - one should be 70% wide and the other 30%. In this article, we'll show how you can achieve this using a Flex Container.

Inside the Flex Container, we've already placed a Table and a Form and set their width. Now, follow the instruction below to configure the height:

1. First, make sure the *Expand content to fit* checkbox is selected in page settings in the right side panel.
2. Add the *full-height* class to the Flex Container's *Styling* section.
3. Now, customize its style in the *Custom code* tab:

```css
<style>
.full-height > ub-grid > ub-dropzone > .flex,
.full-height > ub-grid > ub-dropzone > .flex > ub-grid-item {
  height: 100% !important;
}
</style>
```

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

As simple as that! Now, your container's layout will take up 100% height.

{% hint style="success" %}
In case you have a component with a set width (for example, 500px) and you want the other component to occupy the rest of the space, even on growing, you can also configure 100% height for them.\
You just need to set the *Grow* setting value to "1" in the *Flex* section for the component that should grow.\
![](/files/YIcXOiXZLZdcOe3hnUSa)
{% endhint %}


---

# 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.uibakery.io/how-tos/components-recipes/100-height-components.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.
