Skip to content
Sageio

Spacing

Spacing utilities add margin (m) or padding (p) on all sides, one side (t, e, b, s) or one axis (x, y) with sizes 0 to 5, plus mx-auto and ms-auto for alignment. gap-*, row-gap-* and column-gap-* space flex and grid children, and every class has responsive variants such as p-md-4.

1Padding scale

p-0 to p-5 add padding on all sides; the inner tint shows the padding area.

p-0
p-1
p-2
p-3
p-4
p-5

2Margin scale

m-0 to m-5 push boxes apart; the grey parent shows the margin.

m-0
m-1
m-3
m-5

3One side at a time

pt, pe, pb, ps and mt, me, mb, ms target a single side.

pt-4
pe-5
pb-4
ps-5

4Horizontal and vertical

px-* and py-* set both sides of one axis, mx-* and my-* for margins.

px-4 py-1
px-1 py-4
px-3 py-3

5Centre with mx-auto

mx-auto centres a block element that has a width.

mx-auto

6Gap in a grid

d-grid with gap-3 spaces rows without margins on the children.

gap-3
gap-3
gap-3

7Gap scale

gap-0 to gap-5 on flex rows.

item
item
item
item
item
item
item
item
item
item
item
item

8Responsive padding

p-2 p-sm-3 p-lg-5: padding grows with the screen.

Together we can change lives

Our team has done this many times, so you never have to guess.

9Vertical rhythm

mb-1 under the eyebrow, mb-2 under the heading, mb-4 under the paragraph.

Environment

Real help, where it is needed most

Start in minutes and get help from a real person whenever you need it.

Learn more

10Icon spacing

me-1 and me-2 put a little space between an icon and its label.

11Remove default margins

mb-0 on headings and paragraphs removes their bottom margin in tight cards.

Why we plant trees with the schools we build

default margins

Why we plant trees with the schools we build

mb-0

12Push with ms-auto

ms-auto in a flex row pushes the last item to the end.

Disaster response On hold Nov 13, 2025

13Margin top auto

mt-auto in a flex-column card pushes the footer down.

Five things we learned this year
Our annual report is independently audited and published in full.
$11.94Details

14Row and column gap

row-gap-3 and column-gap-5 on a wrapping flex list.

Transparent reports Volunteer network Impact tracking Volunteer network

15Grid gutters

g-0 to g-5 on a row set the gutter between columns.

col
col
col
col
col
col
col
col
col

16Gutter via --bs-gutter-x

Set --bs-gutter-x inline for a custom column gap.

--bs-gutter-x:3rem
col-6

17Form spacing

mb-3 between fields and a larger mt-4 before the actions.

18Section padding

py-4 py-md-5 for page sections, px-3 for side breathing room.

Change one life, change a community

A school kit costs less than a cinema ticket and lasts a whole year.

19Nested spacing

Outer p-4, inner p-3, innermost p-2: nested panels with clear steps.

p-4 / p-3 / p-2

20List spacing

py-2 on list items with a border between them gives a comfortable touch target.

  • Home
  • Orders
  • Account