-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathflexshrink.html
executable file
·40 lines (35 loc) · 1.28 KB
/
flexshrink.html
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
<html>
<head>
<title>Flexbox Grids</title>
<link rel="stylesheet" href="css/showcase.css">
<link rel="stylesheet" href="css/flexshrink.css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300" rel="stylesheet">
</head>
<body>
<h2>Property: <code>flex-shrink</code></h2>
<p>Default: <code>flex-shrink: 1</code> (flex items are allowed to shrink to some degree)</p>
<div class="container">
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 1</div>
</div>
<p>3, 4, and 5 are no longer allowed to shrink (<code>flex-shrink: 0</code>)</p>
<div class="shrink1 container">
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 0</div>
<div>flex-<br>shrink: 0</div>
<div>flex-<br>shrink: 0</div>
<div>flex-<br>shrink: 1</div>
</div>
<p>3 and 4 are allowed to shrink more compared to other flex items</p>
<div class="shrink2 container">
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 5</div>
<div>flex-<br>shrink: 1</div>
<div>flex-<br>shrink: 1</div>
</div>
</body>
</html>