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
99 lines (78 loc) · 5.74 KB
/
Copy pathindex.html
File metadata and controls
99 lines (78 loc) · 5.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
layout: single
property_name: grid-auto-flow
---
<section id="grid-auto-flow" class="property">
<header class="property-header">
<nav class="property-links">
<a class="property-collection" href="{{site.url}}/css-grid/">
In collection: <strong>CSS Grid</strong>
</a>
<a class="property-links-direct" href="{{site.url}}/property/grid-auto-flow/" data-property-name="grid-auto-flow" data-tooltip="Single page for this property">Permalink</a>
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="grid-auto-flow">Share</a>
<a target="_blank" href="http://caniuse.com/#feat=css-grid" data-tooltip="See on Can I use..." rel="external">Can I use</a>
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/grid-auto-flow" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="property-name">
<a href="#grid-auto-flow"><span>#</span>grid-auto-flow</a>
</h2>
<div class="property-description">
<p>Defines the position of auto-generated <strong>grid items</strong>.</p>
</div>
</header>
<style type="text/css">.grid-auto-flow { display: grid;grid-template-columns: 1fr 1fr;padding: 0; }</style>
<style type="text/css">.grid-auto-flow .two-wide { grid-column: span 2; }.grid-auto-flow .four-tall { grid-row: span 4; }</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="grid-auto-flow: row;">grid-auto-flow: row;</code>
</p>
<div class="example-description">
<p>In this <strong>two-columns</strong> setup, the second grid item is two-columns wide, the third item is four-rows tall.</p>
<p>The other grid items are placed on additional <strong>rows</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 grid-auto-flow " id="grid-auto-flow-row"><p class="block block--alpha"><strong>1.</strong> One</p><p class="two-wide block block--beta"><strong>2.</strong> Two: <strong>2 columns wide</strong></p><p class="four-tall block block--pink"><strong>3.</strong> Three: <strong>4 rows tall</strong></p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--orange"><strong>5.</strong> Five</p><p class="block block--purple"><strong>6.</strong> Six</p><p class="block block--alpha"><strong>7.</strong> Seven</p><p class="block block--beta"><strong>8.</strong> Eight</p><p class="block block--yellow"><strong>9.</strong> Nine</p></div>
</div>
</aside>
<style type="text/css">#grid-auto-flow-row{ grid-auto-flow: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="grid-auto-flow: column;">grid-auto-flow: column;</code>
</p>
<div class="example-description">
<p>The other grid items are placed on additional <strong>columns</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 grid-auto-flow " id="grid-auto-flow-column"><p class="block block--alpha"><strong>1.</strong> One</p><p class="two-wide block block--beta"><strong>2.</strong> Two: <strong>2 columns wide</strong></p><p class="four-tall block block--pink"><strong>3.</strong> Three: <strong>4 rows tall</strong></p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--orange"><strong>5.</strong> Five</p><p class="block block--purple"><strong>6.</strong> Six</p><p class="block block--alpha"><strong>7.</strong> Seven</p><p class="block block--beta"><strong>8.</strong> Eight</p><p class="block block--yellow"><strong>9.</strong> Nine</p></div>
</div>
</aside>
<style type="text/css">#grid-auto-flow-column{ grid-auto-flow: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="grid-auto-flow: dense;">grid-auto-flow: dense;</code>
</p>
<div class="example-description">
<p>The <strong>dense</strong> algorithm tries to place all other grid items in order to fill all the "holes" in the grid.</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 grid-auto-flow " id="grid-auto-flow-dense"><p class="block block--alpha"><strong>1.</strong> One</p><p class="two-wide block block--beta"><strong>2.</strong> Two: <strong>2 columns wide</strong></p><p class="four-tall block block--pink"><strong>3.</strong> Three: <strong>4 rows tall</strong></p><p class="block block--yellow"><strong>4.</strong> Four</p><p class="block block--orange"><strong>5.</strong> Five</p><p class="block block--purple"><strong>6.</strong> Six</p><p class="block block--alpha"><strong>7.</strong> Seven</p><p class="block block--beta"><strong>8.</strong> Eight</p><p class="block block--yellow"><strong>9.</strong> Nine</p></div>
</div>
</aside>
<style type="text/css">#grid-auto-flow-dense{ grid-auto-flow:dense;}</style>
</section>
</section>