Skip to content

Commit 69ef35a

Browse files
rachelandrewtabatkins
authored andcommitted
Added example to grid-gap section (#1049)
* Added example to grid-gap section demonstrating difference between grid-gap and visible gutter * Rephrase note for clarity.
1 parent d58f549 commit 69ef35a

2 files changed

Lines changed: 135 additions & 0 deletions

File tree

css-grid/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,6 +3432,17 @@ Gutters: the 'grid-column-gap', 'grid-row-gap', and 'grid-gap' properties</h3>
34323432
If <<'grid-column-gap'>> is omitted,
34333433
it's set to the same value as <<'grid-row-gap'>>.
34343434

3435+
<div class='example'>
3436+
<figure>
3437+
<img src="images/gutters-gaps.svg" alt="A diagram showing how margins and padding add to the visible gutter size" width="500" height="616">
3438+
</figure>
3439+
3440+
Note: The 'grid-gap' property is only one component of the visible “gutter” or “alley” created between grid areas.
3441+
Margins, padding, or the use of distributed alignment
3442+
may increase the visible separation between grid items
3443+
beyond what is specified in 'grid-gap'.
3444+
</div>
3445+
34353446
<h3 id='auto-margins'>
34363447
Aligning with <a value for="margin">auto</a> margins</h3>
34373448

css-grid/images/gutters-gaps.svg

Lines changed: 124 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)