-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (63 loc) · 4.39 KB
/
Copy pathindex.html
File metadata and controls
80 lines (63 loc) · 4.39 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
---
layout: single
property_name: grid-auto-rows
---
<section id="grid-auto-rows" 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-rows/" data-property-name="grid-auto-rows" 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-rows">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-rows" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
</nav>
<h2 class="property-name">
<a href="#grid-auto-rows"><span>#</span>grid-auto-rows</a>
</h2>
<div class="property-description">
<p>Defines the size of grid rows that were created <em>implicitly</em>: it means that <code>grid-auto-rows</code> targets the rows that were <em>not</em> defined with <code>grid-template-rows</code> or <code>grid-template-areas</code>.</p>
</div>
</header>
<style type="text/css">.grid-auto-rows { display: grid;padding: 0; }</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-rows: auto;">grid-auto-rows: auto;</code>
</p>
<div class="example-description">
<p>The implicity-created rows have an <code>auto</code> size.</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-rows " id="grid-auto-rows-auto"><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><p class="block block--orange"><strong>5.</strong> Five</p><p class="block block--purple"><strong>6.</strong> Six</p></div>
</div>
</aside>
<style type="text/css">#grid-auto-rows-auto{ grid-auto-rows:auto;}</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-rows: 100px;">grid-auto-rows: 100px;</code>
</p>
<div class="example-description">
<p>Here we combine <code>grid-template-areas: "header header header" "sidebar main main" "footer footer footer"</code> with <code>grid-template-rows: 50px 200px</code>.</p>
<p>In this situation, the <code>grid-template-areas</code> defines <strong>3 rows</strong>, while the <code>grid-template-rows</code> only defines <strong>2</strong> row heights.</p>
<p>As a result, the third row height (the footer) takes its value from the <code>grid-auto-rows</code> property: <code>100px</code>.</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-rows " id="grid-auto-rows-100px"><p class="block block--alpha">Header</p><p class="block block--beta">Sidebar</p><p class="block block--pink">Main</p><p class="block block--yellow">Footer: 100px high</p></div>
</div>
</aside>
<style type="text/css">#grid-auto-rows-100px{ grid-auto-rows:100px;}</style>
<style type="text/css">#grid-auto-rows-100px{ grid-template-areas: "header header header" "sidebar main main" "footer footer footer";grid-template-rows: 50px 200px; }</style>
<style type="text/css">#grid-auto-rows-100px .block--alpha { grid-area: header; }#grid-auto-rows-100px .block--beta { grid-area: sidebar; }#grid-auto-rows-100px .block--pink { grid-area: main; }#grid-auto-rows-100px .block--yellow { grid-area: footer; }</style>
</section>
</section>