Table of Contents

ComboStrap Styling - Spacing (Margin, Padding)

About

spacing is the definition of the margin and padding between block component

Spacing Margin Padding

where:

If you want to add space between lines, used the text component and its line-spacing attribute

Example

Padding and Spacing on all sides

A note with:

<note spacing="p-3 m-5">
A note with a padding and a margin
</note>

A note with a padding and a margin

Padding and Spacing on the start side

The start side is:

A note with:

<note spacing="ps-3 ms-5">
A note with a padding and a margin only at the start of the line (ie ''left'' in english) - not at the right
</note>

A note with a padding and a margin only at the start of the line (ie left in english) - not at the right

Syntax

<component spacing="value" />

where value is:

{spaceType}[sides]-{size}

where:

This value may be conditioned to the screen size by adding a breakpoint as prefix

Example: a padding of 3 applied from a medium screen size

<component spacing="p-3-md" />

Support

Bootstrap 4 Notation Preserved

The l and r for left and right of Bootstrap 4 are translated to start and end

<note spacing="pl-3 ml-5">
The old notation ''l'' and ''r'' are still supported therefore ''pl-3 ml-5'' is equivalent to  ''ps-3 ms-5''
</note>

The old notation l and r are still supported therefore pl-3 ml-5 is equivalent to ps-3 ms-5