forked from jgthms/css-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1 lines (1 loc) · 4.71 KB
/
Copy pathindex.html
File metadata and controls
1 lines (1 loc) · 4.71 KB
1
--- layout: single property_name: flex-direction ---<section id="flex-direction" class="property"><header class="property-header"><nav class="property-links"><a class="property-links-direct" href="{{site.url}}/property/flex-direction/" data-property-name="flex-direction" data-tooltip="Single page for this property" target="_blank">Link</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="flex-direction">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/flex-direction" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="{{site.url}}/#flex-direction"><span>#</span>flex-direction</a></h2><div class="property-description"><p>Defines how flexbox items are ordered within a flexbox container.</p></div></header><style type="text/css">.flex-direction { display: flex; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="flex-direction: row;">flex-direction: row;</code></p><div class="example-description"><p>The flexbox items are ordered the <strong>same</strong> way as the <strong>text direction</strong>, along the <strong>main axis</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div flex-direction" id="flex-direction-row"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p></div></div></aside><style type="text/css">#flex-direction-row{ flex-direction:row;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="flex-direction: row-reverse;">flex-direction: row-reverse;</code></p><div class="example-description"><p>The flexbox items are ordered the <strong>opposite</strong> way as the <strong>text direction</strong>, along the <strong>main axis</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div flex-direction" id="flex-direction-row-reverse"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p></div></div></aside><style type="text/css">#flex-direction-row-reverse{ flex-direction:row-reverse;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="flex-direction: column;">flex-direction: column;</code></p><div class="example-description"><p>The flexbox items are ordered the <strong>same</strong> way as the <strong>text direction</strong>, along the <strong>cross axis</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div flex-direction" id="flex-direction-column"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p></div></div></aside><style type="text/css">#flex-direction-column{ flex-direction:column;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="flex-direction: column-reverse;">flex-direction: column-reverse;</code></p><div class="example-description"><p>The flexbox items are ordered the <strong>opposite</strong> way as the <strong>text direction</strong>, along the <strong>cross axis</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div flex-direction" id="flex-direction-column-reverse"><p class="block block--alpha"><strong>1.</strong> One</p><p class="block block--beta"><strong>2.</strong> Two</p><p class="block block--pink"><strong>3.</strong> Three</p><p class="block block--yellow"><strong>4.</strong> Four</p></div></div></aside><style type="text/css">#flex-direction-column-reverse{ flex-direction:column-reverse;}</style></section></section>