# Align Items

The items can change their size to fit the space:

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

Dropdown options:

\- **Stretch**: If the items are smaller than the alignment container, auto-sized items will be equally enlarged to fill the container, respecting the items' width and height limits.

\- **Flex-start**: Used in flex layout only, aligns the flex items flush against the flex container's main-start or cross-start side.

\- **Center**: The flex items' margin boxes are centered within the line on the cross-axis. If the cross-size of an item is larger than the flex container, it will overflow equally in both directions.

\- **Flex-end**: Used in flex layout only, aligns the flex items flush against the flex container's main-end or cross-end side.

\- **Baseline**: All flex items are aligned such that their flex container baselines align. The item with the largest distance between its cross-start margin edge and its baseline is flushed with the cross-start edge of the line.

[Try a demo](https://developer.mozilla.org/en-US/docs/Web/CSS/align-items#try_it)&#x20;


---

# 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://helpwith.salesorder.com/trade-acceleration-portal-2.0/tap-ux/blocks/block-configurations/flex-box-settings/align-items.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.
