-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path3.html
68 lines (68 loc) · 1.49 KB
/
3.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CSS Grid Layout</title>
<style>
#wrapper {
width: 700px;
flex-wrap: wrap;
}
.box {
padding: 15px;
color: #fff;
font-size: 20px;
font-weight: bold;
text-align: center;
display: flex;
}
.box1-3 {
display: flex;
}
.box2-4 {
display: flex;
justify-content: space-between;
}
.box1 {
background-color: #3689ff;
display: inline-block;
/* width: 450px; */
flex-grow: 3;
margin-right: 0;
}
.box2 {
background-color: #00cf12;
/* display: inline-block; */
width: 200px;
height: 200px;
/* justify-content: space-between; */
}
.box3 {
background-color: #ff9019;
display: inline-block;
/* width: 170px; */
flex-grow: 1;
margin-left: 0;
}
.box4 {
background-color: #ffd000;
width: 185px;
height: 200px;
margin: 0;
}
</style>
</head>
<body>
<div id="wrapper">
<div class="box1-3">
<div class="box box1">box1</div>
<div class="box box3">box3</div>
</div>
<div class="box2-4">
<div class="box box2">box2</div>
<div class="box box4">box4</div>
</div>
</div>
</body>
</html>