Skip to content

Commit cbf1adb

Browse files
committed
Tweaking the markup of the example some more.
1 parent 3d80c6b commit cbf1adb

2 files changed

Lines changed: 30 additions & 36 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -848,42 +848,39 @@ <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-
<div class=code-and-figure>
852-
<div>
853-
<pre>
851+
<table
852+
style="margin: 0 auto; vertical-align: middle; border-spacing: 2em 1em;">
853+
<tbody>
854+
<tr>
855+
<td>
856+
<pre>
854857
div { flex-flow: row; }
855858
/* Initial value. Main axis is
856859
inline, no wrap. */</pre>
857-
</div>
858860

859-
<div><img height=80 src="images/flex-flow1.svg" width=200></div>
860-
</div>
861+
<td><img height=80 src="images/flex-flow1.svg" width=240>
861862

862-
<div class=code-and-figure>
863-
<div>
864-
<pre>
863+
<tr>
864+
<td>
865+
<pre>
865866
div { flex-flow: column wrap; }
866867
/* Main axis is block-direction and lines
867868
wrap in the inline direction. For an
868869
English page, the main axis is top-to-bottom
869870
and lines wrap to the right. */</pre>
870-
</div>
871871

872-
<div><img height=200 src="images/flex-flow2.svg" width=170></div>
873-
</div>
872+
<td><img height=200 src="images/flex-flow2.svg" width=170>
874873

875-
<div class=code-and-figure>
876-
<div>
877-
<pre>
874+
<tr>
875+
<td>
876+
<pre>
878877
div { writing-mode: tb-rl;
879878
flex-flow: column wrap-reverse; }
880879
/* Main axis is block direction (right to
881-
left). New lines wrap upwards. */
882-
</pre>
883-
</div>
880+
left). New lines wrap upwards. */</pre>
884881

885-
<div><img height=170 src="images/flex-flow3.svg" width=200></div>
886-
</div>
882+
<td><img height=170 src="images/flex-flow3.svg" width=200>
883+
</table>
887884
</div>
888885

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

css3-flexbox/Overview.src.html

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

369-
<div class='code-and-figure'>
370-
<div><pre>
369+
<table style="margin: 0 auto; vertical-align: middle; border-spacing: 2em 1em;">
370+
<tr>
371+
<td><pre>
371372
div { flex-flow: row; }
372373
/* 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>
374+
inline, no wrap. */</pre>
375+
<td><img src='images/flex-flow1.svg' width=240 height=80>
376+
<tr>
377+
<td><pre>
378378
div { flex-flow: column wrap; }
379379
/* Main axis is block-direction and lines
380380
wrap in the inline direction. For an
381381
English page, the main axis is top-to-bottom
382382
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>
383+
<td><img src='images/flex-flow2.svg' width=170 height=200>
384+
<tr>
385+
<td><pre>
388386
div { writing-mode: tb-rl;
389387
flex-flow: column wrap-reverse; }
390388
/* 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>
389+
left). New lines wrap upwards. */</pre>
390+
<td><img src='images/flex-flow3.svg' width=200 height=170>
391+
</table>
395392
</div>
396393

397394

0 commit comments

Comments
 (0)