> ## Documentation Index
> Fetch the complete documentation index at: https://makeswift-docs-branch.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Align items

> Align items controls the vertical alignment of elements within a box. It ensures that elements are properly aligned, whether at the top, middle, or bottom, providing a balanced and aesthetically pleasing layout.

When you place other elements in a box you can determine how the elements will be aligned with respect to one another using the “Align items” panel. By default, all content will align at the top of a box. Content can also be aligned in the middle or anchored to the bottom. A fourth option of “space between” lets you space the box's content apart at equal distances.

<Frame>
  <img src="https://mintcdn.com/makeswift-docs-branch/5j4n8t-Gz_nd6Yf4/images/builder/align1.png?fit=max&auto=format&n=5j4n8t-Gz_nd6Yf4&q=85&s=9734fd29c86e522e6935d5cd8787a520" alt="Alignment property" width="458" height="106" data-path="images/builder/align1.png" />
</Frame>

<Note>
  Horizontal alignment exists in Makeswift within the
  [margin](/product/component/property-controls/margin) panel.
</Note>

## Top

By default items will align to the top of a box. Typically you will use this if all of your contents have a similar height, or if you want specific content like your images to be in line across all of your elements in a row.

<Frame>
  <img src="https://mintcdn.com/makeswift-docs-branch/5j4n8t-Gz_nd6Yf4/images/builder/align2.png?fit=max&auto=format&n=5j4n8t-Gz_nd6Yf4&q=85&s=688e26512fa59c38d62ddc198c5d60b5" alt="Top alignment" width="2582" height="1452" data-path="images/builder/align2.png" />
</Frame>

## Middle

Middle is a great way to center your elements with respect to one another, even if they differ in height.

<Frame>
  <img src="https://mintcdn.com/makeswift-docs-branch/5j4n8t-Gz_nd6Yf4/images/builder/align3.png?fit=max&auto=format&n=5j4n8t-Gz_nd6Yf4&q=85&s=7b3e0c809743fab54b403e019b5017e3" alt="Middle alignment" width="2582" height="1452" data-path="images/builder/align3.png" />
</Frame>

## Bottom

Bottom is similar to top and is used in situations where you may want specific content like a button to be in line across all of your elements in a row.

<Frame>
  <img src="https://mintcdn.com/makeswift-docs-branch/5j4n8t-Gz_nd6Yf4/images/builder/align4.png?fit=max&auto=format&n=5j4n8t-Gz_nd6Yf4&q=85&s=62b9ad382de5f9a1cb74ae0533c407fe" alt="Bottom alignment" width="2580" height="1452" data-path="images/builder/align4.png" />
</Frame>

## Space between

Space between will set a box's content to be completely spread out at equal distances between them. If you want images to be in line at the top but a button to be in line at the bottom, this is a good alignment to use.

<Frame>
  <img src="https://mintcdn.com/makeswift-docs-branch/5j4n8t-Gz_nd6Yf4/images/builder/align5.png?fit=max&auto=format&n=5j4n8t-Gz_nd6Yf4&q=85&s=717b82495938d1afcf1de8b4172ed996" alt="Space between alignment" width="2582" height="1452" data-path="images/builder/align5.png" />
</Frame>

<Note>
  Space between only takes effect if the box
  [height](/product/component/property-controls/height) is set to stretch and
  there is extra space created within the box.
</Note>

## Examples

For a hero section it is typical to use middle alignment.

<Frame>
  <img src="https://mintcdn.com/makeswift-docs-branch/5j4n8t-Gz_nd6Yf4/images/builder/align6.gif?s=30b414d0e728ab34078d155a7d56d94f" alt="Center aligning a hero" width="800" height="450" data-path="images/builder/align6.gif" />
</Frame>

In order to properly align elements at the bottom of components, like pricing cards, you'll want to use space between.

<Frame>
  <img src="https://mintcdn.com/makeswift-docs-branch/5j4n8t-Gz_nd6Yf4/images/builder/align7.gif?s=87b4043ed50dd99612bb14594d4c79b2" alt="Space between for cards" width="800" height="450" data-path="images/builder/align7.gif" />
</Frame>
