-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
66 lines (59 loc) · 1.39 KB
/
index.html
File metadata and controls
66 lines (59 loc) · 1.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
<!DOCTYPE html>
<html>
<head>
<title>Flex Grow and Shrink</title>
<link href="style.css" type="text/css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
</head>
<body>
<h1 class="desc">flex-grow: Grows item proportionally to siblings, using parent's extra space</h1>
<h1>No flow-grows (default)</h1>
<div id="no_grow">
<div class="no_grow">
<h2></h2>
</div>
<div class="no_grow">
<h2></h2>
</div>
<div class="no_grow">
<h2></h2>
</div>
</div>
<h1>Only one item with flex-grow</h1>
<div id="one_grow">
<div class="one_grow side">
<h2></h2>
</div>
<div class="one_grow center">
<h2>flex-grow: 1</h2>
</div>
<div class="one_grow side">
<h2></h2>
</div>
</div>
<h1>Equal flex-grows</h1>
<div id="equal_grow">
<div class="equal_grow side">
<h2>flex-grow: 1</h2>
</div>
<div class="equal_grow center">
<h2>flex-grow: 1</h2>
</div>
<div class="equal_grow side">
<h2>flex-grow: 1</h2>
</div>
</div>
<h1>Unequal flex-grows</h1>
<div id="unequal_grow">
<div class="unequal_grow side">
<h2>flex-grow: 1</h2>
</div>
<div class="unequal_grow center">
<h2>flex-grow: 2</h2>
</div>
<div class="unequal_grow side">
<h2>flex-grow: 1</h2>
</div>
</div>
</body>
</html>