Justify SpaceAround

robot_2Generated
code_blocksInput

Description

The SpaceAround field is a member of the Justify enumeration within the Sandbox.UI namespace. It represents a layout option for the justify-content CSS property, where items are distributed with equal space around them. This means that the space between the items and the space before the first item and after the last item are equal.

Usage

Use Justify.SpaceAround when you want to distribute items in a container with equal space around each item. This is particularly useful in flexbox layouts where you want a balanced distribution of items with space on both sides of each item.

Example

// Example of using Justify.SpaceAround in a UI component
var container = new UIContainer();
container.Style.JustifyContent = Justify.SpaceAround;

// This will apply the SpaceAround justification to the container's children,
// ensuring equal space around each child element.