Skip to content

Commit 999f6d6

Browse files
committed
[css-grid-3] Add more subheadings and links for alignment
1 parent bc77788 commit 999f6d6

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

css-grid-3/Overview.bs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,14 +1078,27 @@ Sizing Grid Containers</h2>
10781078
<h2 id="alignment">
10791079
Alignment and Spacing</h2>
10801080

1081-
[[css-grid-2#gutters|Gutters]] are supported in both axes.
1081+
<h3 id="gutters">
1082+
Gutters: the 'row-gap', 'column-gap', and 'gap' properties</h3>
1083+
1084+
[[css-grid-2#gutters|Gutters]] are supported in both axes
1085+
using the 'row-gap' and 'column-gap' properties (and their 'gap' [=shorthand=]).
1086+
In the [=grid axis=] they work the same as in a regular [=grid container=];
1087+
see [[css-grid-2#alignment]].
10821088
In the [=stacking axis=],
10831089
the gap is applied between the margin boxes of each pair of adjacent items.
10841090
Margins do not collapse in either axis.
10851091

1092+
<h3 id="grid-axis-alignment">
1093+
Grid-axis Alignment: the 'align-content'/'justify-content', 'align-self'/'justify-self', and 'align-items'/'justify-items' properties</h3>
1094+
10861095
In the [=grid axis=],
1087-
[[css-grid-2#alignment|alignment]]
1088-
works the same as in a regular [=grid container=].
1096+
the [=box alignment properties=]
1097+
work the same as in a regular [=grid container=].
1098+
See [[css-grid-2#alignment]] and [[css-align-3|CSS Box Alignment Level 3]].
1099+
1100+
<h3 id="stacking-content-alignment">
1101+
Stacking-axis Content Distribution: the 'align-content'/'justify-content' properties</h3>
10891102

10901103
In the [=stacking axis=],
10911104
[[css-align-3#content-distribution|content-distribution]] is applied
@@ -1119,6 +1132,9 @@ Alignment and Spacing</h2>
11191132
the [=grid container=]'s [=content box=] in the [=stacking axis=],
11201133
then the [=stacking range=] will be larger than the [=grid container=]'s [=content box=].
11211134

1135+
<h3 id="stacking-self-alignment">
1136+
Stacking-axis Self Alignment: the 'align-self'/'justify-self' and 'align-items'/'justify-items' properties</h3>
1137+
11221138
In the [=stacking axis=],
11231139
the [=self-alignment properties=] only apply to items that are adjacent to a gap in the layout,
11241140
i.e. placed in their [=grid track=](s) either immediately before a spanning item
@@ -1137,7 +1153,6 @@ Alignment and Spacing</h2>
11371153

11381154
ISSUE(10275): Is this a reasonable definition for how the [=self-alignment properties=] should work in the [=stacking axis=]?
11391155

1140-
11411156
<h3 id="grid-lanes-baseline-alignment" oldids="masonry-baseline-alignment">
11421157
Baseline Alignment</h3>
11431158

0 commit comments

Comments
 (0)