-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlex-Directions.html
More file actions
127 lines (107 loc) · 2.9 KB
/
Flex-Directions.html
File metadata and controls
127 lines (107 loc) · 2.9 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<title>Flex-Driection</title>
<!--Google Fonts Link-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@100;200;300;400;500;600;700&display=swap"
rel="stylesheet">
<!--Style tag-->
<style>
body {
padding: 0%;
margin: 0%;
font-family: 'Work Sans';
scroll-behavior: smooth;
}
h1 {
text-align: center;
font-weight: 400;
}
#container {
width: 80%;
height: 500px;
margin: 0px auto;
background-color: rgb(11, 28, 73);
border: 5px solid rgb(11, 28, 73);
display: flex;
flex-direction: row;
}
#container div {
width: 200px;
height: 200px;
}
#container-1 {
width: 80%;
height: 500px;
background-color: rgb(11, 28, 73);
border: 5px solid rgb(11, 28, 73);
margin: 0px auto;
display: flex;
flex-direction: row-reverse;
}
#container-1 div {
width: 200px;
height: 200px;
}
#container-2 {
width: 80%;
height: 500px;
margin: 0px auto;
background-color: rgb(11, 28, 73);
border: 5px solid rgb(11, 28, 73);
display: flex;
flex-direction: column;
}
#container-2 div {
width: 200px;
height: 200px;
}
#container-3 {
width: 80%;
height: 500px;
margin: 0px auto;
background-color: rgb(11, 28, 73);
border: 5px solid rgb(11, 28, 73);
display: flex;
flex-direction: column-reverse;
}
#container-3 div {
width: 200px;
height: 200px;
}
</style>
</head>
<body>
<h1>Let's Understand Flexbox Directions</h1>
<caption>Flex Direction - Row</caption>
<section id="container">
<div style="background-color:#A7EDE7 ;"></div>
<div style="background-color:#45CFDD;"></div>
<div style="background-color:#9681EB ;"></div>
<div style="background-color:#6527BE;"></div>
</section>
<caption>Flex Direction - Row Reverse</caption>
<section id="container-1">
<div style="background-color:#A7EDE7 ;"></div>
<div style="background-color:#45CFDD;"></div>
<div style="background-color:#9681EB ;"></div>
<div style="background-color:#6527BE;"></div>
</section>
<caption>Flex Direction - Column</caption>
<section id="container-2">
<div style="background-color:#DAFFFB ;"></div>
<div style="background-color:#64CCC5 ;"></div>
<div style="background-color:#176B87 ;"></div>
<div style="background-color:#001C30 ;"></div>
</section>
<caption>Flex Direction - Column Reverse</caption>
<section id="container-3">
<div style="background-color:#DAFFFB ;"></div>
<div style="background-color:#64CCC5 ;"></div>
<div style="background-color:#176B87 ;"></div>
<div style="background-color:#001C30 ;"></div>
</section>
</body>
</html>