You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'column-gap' specifies the [=gutter=] between adjacent <a>column boxes</a>,
139
-
see [[CSS-MULTICOL-1]].
140
-
'row-gap' specifies the [=gutter=] between the rows of [=column boxes=] established by 'column-height',
141
-
see [[CSS-MULTICOL-2]].
142
-
143
-
<dt id="gap-flex"><a>flex containers</a>
144
-
<dd>
145
-
When applied to the <a>main axis</a>
146
-
(e.g. 'column-gap' in a ''flex-flow/row''<a>flex container</a>),
147
-
indicates the [=gutter=] between items
148
-
(as if an additional fixed-size margin were inserted
149
-
between adjacent <a>flex items</a>
150
-
in a single line).
151
-
152
-
When applied to the <a>cross axis</a>
153
-
(e.g. 'row-gap' in a ''flex-flow/row''<a>flex container</a>),
154
-
indicates the [=gutter=] between adjacent <a>flex lines</a>.
155
-
156
-
<dt id="gap-grid"><a>grid containers</a>
157
-
<dd>
158
-
The 'row-gap' and 'column-gap' properties,
159
-
when specified on a <a>grid container</a>,
160
-
define the [=gutters=] between <a>grid rows</a> and <a>grid columns</a>,
161
-
respectively.
162
-
See [[css-grid-1#gutters]] for precise details.
163
-
</dl>
164
-
165
-
In all cases, the [=gutter=] disappears when it coincides with
166
-
a [=fragmentation break=]. [[CSS-BREAK-3]]
167
-
168
-
Note: Table boxes do not use the 'gap' properties
169
-
to specify separation between their cells.
170
-
Instead, they use the 'border-spacing' property,
171
-
which has slightly different functionality:
172
-
it inherits,
173
-
and it also specifies the additional spacing between the outermost cells
174
-
and the border of the table
175
-
(similar to ''space-evenly'' rather than ''space-between'').
176
-
177
218
<h3 id='gap-shorthand'>
178
219
Gap Shorthand: the 'gap' property</h3>
179
220
@@ -248,84 +289,6 @@ Legacy Gap Properties: the 'grid-row-gap', 'grid-column-gap', and 'grid-gap' pro
248
289
* <dfn property>grid-column-gap</dfn> as a [=legacy name alias=] of the 'column-gap' property
249
290
* <dfn property>grid-gap</dfn> as a [=legacy name alias=] of the 'gap' property
250
291
251
-
<h2 id="gaps">
252
-
Gaps</h2>
253
-
254
-
Various layouts in CSS such as
255
-
<a>multicol containers</a>, <a>flex containers</a>, <a>grid containers</a>, and <a>grid lanes containers</a>
256
-
position child boxes adjacent to each other with [=gaps=], also known as <a>gutters</a>, between them.
257
-
258
-
For the purposes of this specification, <dfn>gap</dfn>, <dfn>column gap</dfn>, and <dfn>row gap</dfn> are defined as follows depending on the type of container:
0 commit comments