|
/ Documentation /General/ Spectra – Container Flex property

Spectra – Container Flex property

This document describes the Container flex properties and how they can be applied in the Editor panel. It will help you better optimize your designs using Container block.

Direction

The direction option is the basic but most important of container layout options. Choose Row, Column, or the Reversed options depending on your needs.

  • Row: Items are positioned horizontally
  • Column: Items are positioned vertically
  • Row Reverse: Items are positioned horizontally but in reverse order.
  • Column Reverse: Items are positioned vertically but in reverse order

Align Items

When the direction is set to Row, you can change the alignment of items in the container to the top, middle, or bottom of the Container.

The following options are available under \’Align Items\’

  • Flex Start: This aligns the items to the top of the container
Align item top
  • Center: This aligns the items to the center of the container
  • Flex End: This aligns the items to the bottom of the container.
  • Stretch: This will attempt to stretch the items to fit the container.

When the direction is set to column, you can change the alignment of items in the container to the left, middle, or right.

The following options are available under \’Align Items\’

  • Flex Start: This aligns the items to the left of the container.
  • Center: This aligns the items to the center of the container.
  • Flex End: This aligns the items to the right of the container.
  • Stretch: This will attempt to stretch the items to fit the container.

Justify Content

The justify-content property defines the alignment along the item’s center axis, and it also helps distribute the space leftover in the container between the items.

The following options are available under Justify content.

  • Flex Start: This justifies the content to the starting edge of the container. 
  • Center: This justifies the content to the center of the container
  • Flex End: This justifies the content to the ending edge of the container
  • Space Between: This creates space between the content in which the first item is placed on the starting edge and the last to the ending.
  • Space Around: This creates equal space between the container and the items.
  • Space Evenly: This creates equal space between items without regard to the container.

Wrap

  • When you use the wrap, it will allow elements that use a defined width to wrap into multiple lines rather than forcing the items to be on a single line. This can ‌create multi-line elements in the same container. 
  • When you use the wrap reverse, it will allow elements that use a defined width to wrap into multiple lines rather than forcing the items to be on a single line but in reverse order.
Wrap revere container
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page

Get Notified When Available

Note - You can purchase the Essential Toolkit now and easily upgrade to the Business Toolkit once it becomes available.

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Get your hands on Spectra Pro

Enter your name and email address to get access to Spectra Pro.