Skip to content

Commit 3d80c6b

Browse files
committed
Added pictures to the flex-flow example.
1 parent fd81266 commit 3d80c6b

5 files changed

Lines changed: 128 additions & 18 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -848,15 +848,42 @@ <h3 id=flex-flow><span class=secno>3.1. </span> Flexbox Flow Direction: the
848848
<div class=example>
849849
<p>Some examples of valid flows:</p>
850850

851-
<pre>
852-
div { flex-flow: row; } /* Initial value. Main axis is inline,
853-
no wrap. */
854-
div { flex-flow: column wrap; } /* Main axis is block-direction and lines
855-
wrap in the inline direction. For an
856-
English page, the main axis is top-to-bottom
857-
and lines wrap to the right. */
858-
div { writing-mode: tb-rl; /* Main axis is block direction (right to left).
859-
flex-flow: column wrap-reverse; } /* New lines wrap upwards. */</pre>
851+
<div class=code-and-figure>
852+
<div>
853+
<pre>
854+
div { flex-flow: row; }
855+
/* Initial value. Main axis is
856+
inline, no wrap. */</pre>
857+
</div>
858+
859+
<div><img height=80 src="images/flex-flow1.svg" width=200></div>
860+
</div>
861+
862+
<div class=code-and-figure>
863+
<div>
864+
<pre>
865+
div { flex-flow: column wrap; }
866+
/* Main axis is block-direction and lines
867+
wrap in the inline direction. For an
868+
English page, the main axis is top-to-bottom
869+
and lines wrap to the right. */</pre>
870+
</div>
871+
872+
<div><img height=200 src="images/flex-flow2.svg" width=170></div>
873+
</div>
874+
875+
<div class=code-and-figure>
876+
<div>
877+
<pre>
878+
div { writing-mode: tb-rl;
879+
flex-flow: column wrap-reverse; }
880+
/* Main axis is block direction (right to
881+
left). New lines wrap upwards. */
882+
</pre>
883+
</div>
884+
885+
<div><img height=170 src="images/flex-flow3.svg" width=200></div>
886+
</div>
860887
</div>
861888

862889
<h3 id=flex-order><span class=secno>3.2. </span> Display Order: the

css3-flexbox/Overview.src.html

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -366,15 +366,32 @@ <h3 id='flex-flow'>
366366
<div class="example">
367367
<p>Some examples of valid flows:</p>
368368

369-
<pre>
370-
div { flex-flow: row; } /* Initial value. Main axis is inline,
371-
no wrap. */
372-
div { flex-flow: column wrap; } /* Main axis is block-direction and lines
373-
wrap in the inline direction. For an
374-
English page, the main axis is top-to-bottom
375-
and lines wrap to the right. */
376-
div { writing-mode: tb-rl; /* Main axis is block direction (right to left).
377-
flex-flow: column wrap-reverse; } /* New lines wrap upwards. */</pre>
369+
<div class='code-and-figure'>
370+
<div><pre>
371+
div { flex-flow: row; }
372+
/* Initial value. Main axis is
373+
inline, no wrap. */</pre></div>
374+
<div><img src='images/flex-flow1.svg' width=200 height=80></div>
375+
</div>
376+
<div class='code-and-figure'>
377+
<div><pre>
378+
div { flex-flow: column wrap; }
379+
/* Main axis is block-direction and lines
380+
wrap in the inline direction. For an
381+
English page, the main axis is top-to-bottom
382+
and lines wrap to the right. */</pre>
383+
</div>
384+
<div><img src='images/flex-flow2.svg' width=170 height=200></div>
385+
</div>
386+
<div class='code-and-figure'>
387+
<div><pre>
388+
div { writing-mode: tb-rl;
389+
flex-flow: column wrap-reverse; }
390+
/* Main axis is block direction (right to
391+
left). New lines wrap upwards. */
392+
</div>
393+
<div><img src='images/flex-flow3.svg' width=200 height=170></div>
394+
</div>
378395
</div>
379396

380397

css3-flexbox/images/flex-flow1.svg

Lines changed: 16 additions & 0 deletions
Loading

css3-flexbox/images/flex-flow2.svg

Lines changed: 25 additions & 0 deletions
Loading

css3-flexbox/images/flex-flow3.svg

Lines changed: 25 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)