Absolute and viewport positioning
In a flexible layout, Moflow lets you set the positioning method. This setting lets you use absolute and viewport positioning to create more flexible layouts.
Core capabilities
Positioning method: You can configure the positioning mode only for child elements in a flexible container. This capability is not available for child elements in a grid container. This feature is based on the Cascading Style Sheets (CSS) position property. For more information, see the MDN documentation.
Positioning modes
Default positioning: Follows the normal document flow (position: static).
Absolute positioning: Positions the element relative to its parent container (position: absolute).
Viewport positioning: Positions the element relative to the browser viewport (position: fixed).
A floating element is an element that uses absolute or viewport positioning. It is rendered outside the normal document flow.
Overflow rendering
Absolutely positioned elements are constrained by the overflow settings of their parent container.
Viewport positioned elements are not constrained by the overflow settings of their parent container.
Drag-and-drop building with floating elements
You can drag elements on the canvas to reorder them in the outline tree. Default positioned elements are used as anchors.
You can drag elements on the canvas to move them between parent containers.
If the new parent container is a grid container, the element follows the default grid layout rules. The float positioning is disabled.
If the new parent container is a flexible container, the float positioning remains active.
Stacking order management (z-index)
Default rendering priority
Floating elements are rendered on top of default positioned elements.
Elements of the same type, such as absolute or viewport, are rendered based on their order in the component tree. Elements that are lower in the tree appear in front.
2. Rules for effective indexes
A higher value means a higher stacking level. This applies only to floating elements.
An explicitly set value overrides the default rules.
III. Control operation logic
First row of quick positioning: You can use the four corner presets (top-left, top-right, bottom-right, and bottom-left) to position elements precisely. The auto button positions the element based on the parent container's vertical and horizontal arrangement.
Second row of quick positioning: These settings work only when the element's height and width are set to auto. Otherwise, they have no effect.
The quick settings are shortcuts for the top, right, bottom, and left properties shown below. You can achieve the same result by setting these properties manually.

Demonstration
Effect of the first row of quick settings:
Modifying specific coordinate values:
Effect of the second row of quick settings (this requires the component's width or height to be set to auto):
Best practices: Center an element vertically and horizontally
When width and height are fixed pixel values
Set the top and left coordinates to 50%.
Set the top and left margins to half of the negative height and width, respectively.
When width and height are percentage values
top coordinate: (100% - height percentage) / 2
left coordinate: (100% - width percentage) / 2