ReferencesideBySide

<sideBySide>

<sideBySide> is a Sectional component that takes enclosed sectional components and renders them in a sideBySide horizontal format.

Attributes and Properties

Attributes for <sideBySide>
AttributeTypeValues
margins = "…"[ number ]
valign = "…"
valigns = "…"[ text ]
width = "…"
widths = "…"[ number ]
Props for <sideBySide name="s">
PropertyType
$s.absoluteMeasurementsboolean
$s.gapWidthnumber
$s.margins[ number ]
$s.valigns[ text ]
$s.widths[ number ]

Example: Default <sideBySide>

Three examples of different components placed in a <sideBySide> are illustrated. By default, portions are assigned an equal percentage width, with no margin. These settings can be modified with the widths and margins attributes.


Example: widths

The widths attribute assigns a width to each side-by-side portion by percent.


Example: margins

The margins attribute assigns a margin between each side-by-side portion by percent. When widths and margins attributes are both applied, margins are applied first.