Skip to content

Commit 8eaf7ca

Browse files
committed
[css-grid-3][editorial] Fix example to point to the new image.
1 parent e430cc2 commit 8eaf7ca

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

css-grid-3/Overview.bs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -718,15 +718,27 @@ Masonry Placement</h2>
718718
into the “shortest” masonry track available.
719719

720720
<div class="example">
721-
Here's a masonry layout <a href="examples/pinterest-with-span.html">example</a>
722-
demonstrating placed and spanning items:
721+
Here's a masonry layout demonstrating placed and spanning items:
722+
723+
<pre highlight=css>
724+
.container {
725+
grid-template-columns: repeat(3, auto);
726+
}
727+
.container > :nth-child(2) {
728+
/* auto-placed, but spanning. */
729+
grid-column: span 2;
730+
}
731+
.container > :nth-child(3) {
732+
/* manually placed */
733+
grid-column: 3;
734+
}
735+
/* all other children are auto-placed */
736+
</pre>
723737

724738
<figure>
725-
<img src="images/example-pinterest-with-span.png">
739+
<img src="images/example-span-and-manual.png">
726740
<figcaption>Rendering of the example above.</figcaption>
727741
</figure>
728-
729-
ISSUE: Need a better example!!!
730742
</div>
731743

732744
<h3 id="masonry-placement-grid-option">

0 commit comments

Comments
 (0)