Use containers to keep your content centered and legible.
Yeeflow Flexbox Container control is a way to apply the same order, positioning, and size settings on a group of items that are confined within the same container. These items can either be other containers placed inside the parent container, or controls.
Flexbox Containers are a flexible way to organize items in a column or a row. It’s efficient, dynamic, and responsive.
Flexbox operates on a main axis and a perpendicular cross axis. Direction determines the main axis. Row uses a horizontal main axis, while Column uses a vertical main axis. The reverse directions also reverse the order of the items.
The original axis illustration shows a Row layout with a horizontal main axis and a vertical cross axis. Use the selected Direction to identify the axes in your layout.
The container options allow users to define these settings on 3 levels:
The container level – these settings will affect the container itself, its size, and its layout.
The items group level – these settings will affect the items as a group. For instance, the direction of the items, the spacing between them, their alignment, etc.
The specific item level – one item can override the alignment set for the group. For example, if the group is centered, you can align an individual item to the start of the cross axis. Where the start appears depends on Direction.
The original example places six controls in a container with Min Height 450. Any child can override the group’s alignment.
Flexbox Containers vs. Sections and Columns
Here are some things you should know about the relationship between Flexbox Containers and Sections and Columns:
The containers can be added inside into the columns of a Section, while the Sections cannot be added inside into a container.
The Containers can be added inside into a Grid, while the Section cannot be added into a Grid.
The Items inside in the containers can be organized in 2 directions (Horizontal or Vertical), while the items inside in a section can only have one direction (Vertical).
The Items inside in a Container can set their item level styles in the advanced tab (under Container Child), while the items inside in a Section do not have this option.
What does the Container do?
Flexbox containers simplify page layouts, using only one wrapping element, instead of two – columns and sections, allowing you to group controls together in a container. This approach will empower you to create highly sophisticated page designs, with significantly less DOM bloat.
Using Containers will enable you to:
Optimize layout – determine the direction, alignment, order, length, and placement of a control, or a number of controls within the container, without requiring additional columns or inner sections. This allows you to optimize the layout of widgets throughout the page.
Better design control – Using Containers allows you better control over the design. By first grouping elements inside a container, it can then be sized to fit perfectly on your page. You can control the layout and distribution of elements within the Container, and adjust your content to every screen size, resulting in greater responsiveness, without compromising on speed.
Enhance nesting capabilities – nest one container inside another, for greater flexibility and complex layouts.
Hyperlink the entire container wrapper – improve the usability of the content inside in containers by hyperlinking the entire container wrapper.
Add a Container?
You can add a Container control to your page from the Controls panel. By default, the container will span across the full width of the body.
Adjusting the Container’s Size and Behavior
Select the container and open Layout. Use Container for Width and Height, and Items for Overflow and HTML tag.
In the original Layout panel, Container holds Width and Height. Items holds Overflow and HTML tag. All four shown values are Default.
Width
The Width of a container is 100% by default. You can also set a specific width in
px: Pixels
%: Percentage
em: Em (relative to the font size of the element)
rem: Root em (relative to the font size of the root element)
vw: Viewport width
calc(): Calculation function
The original Custom width selector offers pixels, percent, em, rem, viewport width (vw), and a calculation option.
Height
The height of a container automatically adjusts to its content — as you add controls, the container grows taller. You can also set a min height.
The Minimum Height slider controls the minimum height of the container’s content in
px: Pixels
%: Percentage
em: Em (relative to the font size of the element)
rem: Root em (relative to the font size of the root element)
vh: Viewport height
calc(): Calculation function
The final frame of the original animation shows Min Height selected with a value of 223. Select Min Height and adjust the slider to set a value for your layout.
Overflow
Use Overflow to keep content visible, hide it, or let readers scroll when it extends beyond the container.
Default: Allows the overflow of items outside the container.
Hidden: Hides the overflowing items. The overflowing items are not accessible.
Auto: Creates a scrollbar when content overflows to keep the items accessible. This setting allows for swiping across the content in mobile views.
Scroll: Enable a scroll bar to manage overflow items, allowing users to scroll through content that exceeds the visible area.
In the original Overflow example, Default is selected and a photo extends below a container whose Min Height is 223.
Container structure
HTML Tag
Wrap an entire container from the dropdown menu by selecting the most appropriate HTML tag for your container.
Default: Set the container as a div tag in HTML.
div: Set the container as a div tag in HTML.
a: Select the “a” option from the HTML tag dropdown selector to make this container clickable. A link option will then appear below. Enter the desired URL using the https:// in the field or use the dynamic options by clicking the stack icon.You may also choose to open the link in a new tab or add additional custom attributes.
Action
For action settings, please refer to: Container Execute type
Adjusting the Contained Elements
Introduction
You can adjust the contained elements’ layout by navigating to the Layout tab > Items section.
The original Items panel offers Row, Column, Row Reversed and Column Reversed. This example selects Row, centers Align Items, and sets Element Gap to 17px. The Wrap controls appear below.
Direction
Use the Direction option to determine the direction in which the contained elements will appear.
Row: Items are positioned horizontally.
Column: Items are positioned vertically.
Row Reversed: Items are positioned horizontally but in reverse order.
Column Reversed: Items are positioned vertically but in reverse order.
Align Items
Align Items controls how the contained items align along the cross axis. With Row direction, the cross axis is vertical. With Column direction, it is horizontal.
Start: Items are aligned to the start of the container.
Center: Items are aligned to the center of the container.
End: Items are aligned to the end of the container.
Stretch: Items are stretched across the container.
Additional item settings
Justify Content
Justify Content aligns items and distributes remaining space along the main axis. With Row direction, the main axis is horizontal. With Column direction, it is vertical.
Start: items are aligned to the main-axis start.
Center: items are centered along the main axis.
End: items are aligned to the main-axis end.
Space between: items are evenly distributed from edge to edge.
Space around: items are evenly spaced, with half as much space at the outer edges as between neighboring items.
Space Evenly: items have equal space between, before and after them.
Elements Gap
Control the spacing between one element to another (control or another container) in pixels (PX), or percentage (%).
Wrap
Wrap controls whether items stay on one flex line or flow onto additional lines. With Row direction, Wrap starts another row when the items no longer fit. No Wrap keeps them on one row.
The original layout panel also shows Align Content below Wrap. Check the options available for your selected container layout.
No Wrap: with Row direction, the items remain on one row.
In this No Wrap example, all three items stay on one row. The illustration marks each item 50%. Shrink settings can affect their displayed widths.
Wrap: with Row direction, a line breaks when items no longer fit, and the remaining items flow onto another row.
In this Wrap example, two items marked 50% share the first row. The item on the second row is marked 100%. These percentages describe this layout example.
Appearance
Dynamic Display Rules: When you set a dynamic display rule, it behaves differently based on specific conditions and rules. Learn how to create dynamic display rules for a control.
Style the Container
Background (Normal & Hover)
Choose between Classic (which allows you to set a background color or image), Gradient (allowing you to set a color gradient background).
Background Type – Select the background type, color, gradient, image.
Color (background): From the color picker, select the color(s) for the field.
Image: Click to select or upload an image to use as the background image of your container.
The original Normal background example combines a color and an image. Set Position to Center Center, Attachment to Default, Repeat to No-Repeat, and Size to Cover to reproduce the example.
Background Overlay
Background Type – Select the background type, color, gradient, image.
Color (background): From the color picker, select the color(s) for the field.
Image: Click to select or upload an image to use as the background overlay image of your container.
Opacity: Use the slider or manually enter a value in the field.
The original Normal background overlay uses a white color stop at 0 and a teal stop at 78. The example sets Type to Linear, Angle to 180 and Opacity to 0.8.
Border (Normal & Hover)
Border type: From the dropdown menu select between solid, double, dotted, dashed, or grooved.
Width (border): Enter a chosen value in the fields based on px.
Color (border): From the color picker, choose the color for your border.
Border Radius: Enter a chosen value in the fields based on px, or %.
Box Shadow: Click the pencil icon to open the shadow properties options.
The original Normal border uses Solid, linked Top, Right, Bottom and Left widths of 5px, a black border, and linked corner radii of 8px. Select the pencil icon to edit Box Shadow.
Typography
Text color: You can set the text color within the container. This will only apply to fields without a pre-set color, and it will not overwrite existing colors.
Text align: You can set the text alignment within the container. This setting will apply only if the individual field does not have its own text alignment configured.
The original Typography group has Text color and Text align settings. Individual fields can override these container settings.
Advanced Settings
Set the Advanced options that are applicable to this control.
Preview the container at the desktop and mobile widths you support. Check Row and Column direction, both axes of alignment, wrapping and overflow with representative content. Then check any child-specific alignment overrides and verify container actions separately before publishing.







