Skip to content

Commit

Permalink
Add section for column wrapping #20
Browse files Browse the repository at this point in the history
  • Loading branch information
katbow committed Jun 1, 2017
1 parent a2484b0 commit 42d224a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions components/grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,22 @@ <h2>Example: Mobile, tablet, desktop</h2>
</div>
</div>

<h2>Example: Column wrapping</h2>
<p>
If the columns taking up more than 100% width are placed in a single row,
the extra columns will wrap onto a new line.
</p>

<div class="w-100 h2 mb4">
<div class="fl w-90 pa2 bg-light-pink ba b--pink">.w-90</div>
<div class="fl w-30 pa2 bg-light-pink ba b--pink">
<p>.w-30</p>
<p>Since 90 + 30 > 100, this 30% width div gets wrapped onto a new line.</p>
</div>
<div class="fl w-50 pa2 bg-light-pink ba b--pink">
<p>.w-50</p>
<p>Subsequent columns continue alone the new line.</p>
</div>
</div>

</article>

0 comments on commit 42d224a

Please sign in to comment.