File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff 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">
You can’t perform that action at this time.
0 commit comments