-
Notifications
You must be signed in to change notification settings - Fork 6
/
flexbasis.html
executable file
·37 lines (32 loc) · 1.19 KB
/
flexbasis.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
<html>
<head>
<title>Flexbox Grids</title>
<link rel="stylesheet" href="css/showcase.css">
<link rel="stylesheet" href="css/flexbasis.css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300" rel="stylesheet">
</head>
<body>
<h2>Property: <code>flex-basis</code></h2>
<p>Default: <code>flex-basis: auto</code></p>
<div class="container">
<div>1 <br>flex-basis: auto</div>
<div>2 <br>flex-basis: auto</div>
<div>3 <br>flex-basis: auto</div>
<div>4 <br>flex-basis: auto</div>
</div>
<p>Different <code>flex-basis</code> values (act like width on the main axis)</p>
<div class="basis1 container">
<div>1 <br>flex-basis: 200px</div>
<div>2 <br>flex-basis: 300px</div>
<div>3 <br>flex-basis: auto</div>
<div>4 <br>flex-basis: 100px</div>
</div>
<p>Percent values (note that it's necessary to combine with <code>flex-shrink</code>)</p>
<div class="basis2 container">
<div>1 <br>flex-basis: 25%</div>
<div>2 <br>flex-basis: auto</div>
<div>3 <br>flex-basis: auto</div>
<div>4 <br>flex-basis: 50%</div>
</div>
</body>
</html>