Megacorp Documentation v2.0-beta

Spacing

Three options control space around a grid: :gutter: between the cells, :margin: outside the whole row, and :padding: inside it. A cell takes :margin: and :padding: of its own.

:gutter:

A step from 0 to 5, in the same one-or-four breakpoint form the column counts use. Unlike a column count it starts at 0 and never accepts auto.

No gutter at all — the cells touch:

0

is the

tightest step.

The widest:

5

is the

widest.

:margin: and :padding:

Both take one value, applying to all four sides, or four, read as top bottom left right — an order that is neither CSS's clockwise one nor alphabetical. :margin: accepts auto; :padding: does not.

The row has a wide margin above and below and is centred horizontally; it carries a padding of its own, and so does this cell.

This cell keeps space to its left and right instead.