-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathflexbox.html
50 lines (49 loc) · 1.13 KB
/
flexbox.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FlexBox | Basics</title>
<style>
*{
box-sizing: border-box;
}
body{
padding: 0;
margin: 0;
}
.flex_container{
height: 90vh;
width: 80vw;
margin: auto;
background-color: lightsalmon;
display: flex;
}
.box{
height: 7rem;
width: 7rem;
}
.box-1{
background-color: aqua;
}
.box-2{
background-color: darkolivegreen;
}
.box-3{
background-color: mediumseagreen;
}
.box-4{
background-color: rgb(205, 19, 205);
}
</style>
</head>
<body >
<div class="flex_container">
<div class=" box box-1">Box1</div>
<div class="box box-2">Box2</div>
<div class=" box box-3">Box3</div>
<div class="box box-4">Box4</div>
</div>
</body>
</html>