-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss-flex-grow.html
104 lines (88 loc) · 1.82 KB
/
css-flex-grow.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
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
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<title>Css Flexbox</title>
<style type="text/css">
.container{
/*used for practice/*/
/*https://cssreference.io/*/
background-color: #eee;
width: 100%;
/*height: 400px;*/
margin: auto;
padding: 10px;
border:3px solid #000;
/*flexbox*/
display: flex;
flex-flow: row wrap;
/* vertically align for multple rows..*/
/*align-content: stretch;*/
/*align-content: flex-start;*/
/*align-content: flex-end;*/
/*align-content: center;*/
/*align-content: space-between;*/
/*align-content: space-around;*/
}
.items{
color: #fff;
/*font-size: 20px;*/
text-align: center;
padding: 10px;
font-weight: bolder;
font-family: cursive;
/*margin: 10px;*/
width: 90px;
flex-grow: 1;
/*equally*/
}
.item1{
background-color: orangered;
/*flex-grow: 3;*/
}
.item2{
background-color: yellowgreen;
}
.item3{
background-color: MEDIUMPURPLE;
flex-grow: 3;
}
.item4{
background-color: hotpink;
/*flex-grow: 5;*/
}
.item5{
background-color: royalblue;
}
.item6{
background-color: silver;
}
.item7{
background-color: red;
}
.item8{
background-color: tomato;
}
.item9{
background-color: skyblue;
}
.item10{
background-color: green;
}
.item11{
background-color: dodgerblue;
}
</style>
</head>
<body>
<div class="container">
<div class="items item1">One</div>
<div class="items item2">Two</div>
<div class="items item3">Three</div>
<div class="items item4">Four</div>
<!-- <div class="items item5">Five</div>
<div class="items item6">Six</div>
<div class="items item7">Seven</div>
<div class="items item8">Eight</div> -->
</div>
</body>
</html>