Using Flexbox layouts in UI Builder
-
- UpdatedJan 30, 2025
- 5 minutes to read
- Yokohama
- Building applications
Create a Flexbox layout in UI Builder to build powerful pages so that you can customize with cascading style sheets (CSS) and can improve your performance.
You can easily build custom pages with Flexbox layouts in UI Builder. Customizing the layout of your page lets you take full advantage of Flexbox so that you can achieve your overall page design. For more information, see Organize components in UI Builder pages.
Flexbox is a one-dimensional layout system in CSS. Flexbox is inherently flexible, which is useful for when you don’t know the size of your content. If you plan to build complex pages, you can customize the layout of your page in the configuration panel styles tab or with CSS. Visit Mozilla to learn more about Flexbox.
- Row: Rows are organized left-to-right or right-to-left, depending on the direction of your browser's default language. Left/right is the case for an English browser.
- Row-reverse: Rows are organized in the reverse direction of your browser's default language, such as right-to-left or left-to-right.
- Column: Up/down or down/up
- Column-reverse: Down/up
Figure 1. Flexbox row and column directions - Justify content: Defines the alignment along the main axis. Choices are as follows:
- Flex-start: Items are at the start of the flex direction, similar to left-justified content. This is the default setting.
- Flex-end: Items are at the end of the flex direction, similar to right-justified content.
- Space-between: Items are distributed evenly.
- Space-around: Items are distributed evenly with equal space around them.
- Space-evenly: The spacing between items is equal.
- Align items: Defines how you want your flex content displayed along the cross axis. Choices
are as follows:
- Stretch: Stretch your content to fill the container. This is the default setting
- Flex-start: Place your content at the start of the cross axis.
- Flex-end: Place your content at the end of the cross axis.
- Center: Center your content in the cross axis.
- Base system: Align your content the same as your baseline alignment.
- Height: Set the height automatically or manually.
- Width: Set the height of your flexbox items automatically or manually.
- Margin: Set your minimal distance between flexbox items.
- Padding: Set the padding for each side of your flexbox items.
Create a Flexbox layout with the new layout system
Create a Flexbox layout in UI Builder to build powerful pages in a low-code environment.
Before you begin
Role required: admin
Procedure
Create a Flexbox layout with the old layout system
Create a Flexbox layout in UI Builder to build powerful pages so that you can customize with cascading style sheets (CSS) and can improve your performance.
Before you begin
Role required: admin
About this task
In the following procedure, you learn how to use Flexbox to change the CSS code to customize the layout of your page.
Procedure
Result


On this page
Related Content
- Create a CSS Grid layout with the old layout system
Create a CSS Grid layout in UI Builder to build powerful pages so that you can customize with cascading style sheets (CSS) and can improve your performance.