You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css3-flexbox/Overview.src.html
+19-13Lines changed: 19 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -347,10 +347,10 @@ <h3 id='flex-order'>
347
347
<td><dfn>flex-order</dfn>
348
348
<tr>
349
349
<th>Value:
350
-
<td><integer>
350
+
<td><number>
351
351
<tr>
352
352
<th>Initial:
353
-
<td>1
353
+
<td>0
354
354
<tr>
355
355
<th>Applies to:
356
356
<td><i>flexbox items</i></td>
@@ -371,21 +371,27 @@ <h3 id='flex-order'>
371
371
372
372
<divclass=example>
373
373
<p>This example shows how ordinal groups might be used.</p>
374
-
<pre><code> div { display: flexbox; }
375
-
#item1 { flex-order: 2; }
376
-
#item3 { flex-order: 2; }
377
-
#item4 { flex-order: 1; }
374
+
375
+
<pre>
376
+
div { display: flexbox; }
377
+
#item1, #item3 { flex-order: 1; }
378
+
#item4 { flex-order: 0; }
378
379
379
380
<div>
380
-
<div id="item1">item1</div>
381
-
<div id="item2">item2</div>
382
-
<div id="item3">item3</div>
383
-
<div id="item4">item4</div>
384
-
</div></code></pre>
381
+
<button id="item1">One</button>
382
+
<button id="item2">Two</button>
383
+
<button id="item3">Three</button>
384
+
<button id="item4">Four</button>
385
+
</div></pre>
385
386
386
-
<p>The first ordinal group, 1, contains item2 and item4. As item2 does not specify an ordinal group, it will default to 1. The elements will be displayed in document order, so item2 will be displayed before item4. The second ordinal group, 2, contains the remaining two items. The resulting display order will be:</p>
387
+
<p>Items 2 and 4 are both in ordinal group 0 (item 2 defaults to ''0'' because it doesn't specify one explicitly). This is the lowest ordinal group, so they'll be displayed first, and in document order, with Item 2 displayed before Item 4. The remaining items are both in ordinal group 1, so the resulting display order will be:</p>
387
388
388
-
<pre><code>item2 item4 item1 item3</code></pre>
389
+
<divstyle="border: medium solid green; display: inline-block;">
390
+
<button>Two</button>
391
+
<button>Four</button>
392
+
<button>One</button>
393
+
<button>Three</button>
394
+
</div>
389
395
</div>
390
396
391
397
<pclass='issue'>Add a realistic example of tab reordering.</p>
0 commit comments