-
Notifications
You must be signed in to change notification settings - Fork 1
/
practice1.html
53 lines (52 loc) · 1.24 KB
/
practice1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container{
border: 2px solid black;
}
#box1{
border: 2px solid black;
background-color: palegreen;
margin: 2px;
padding: 3px;
height: 95px;
width: 200px;
}
#box2{
border: 2px solid black;
background-color: paleturquoise;
margin: 2px;
padding: 3px;
height: 95px;
width: 200px;
}
#box3{
border: 2px solid black;
background-color: palevioletred;
margin: 2px;
padding: 3px;
height: 200px;
width: 200px;
}
@media (min-width: 470px) {
.container{
display: flex;
flex-direction: row;
}
}
</style>
</head>
<body>
<div class="container">
<div class="box">
<div id="box1">1</div>
<div id="box2">2</div>
</div>
<div class="box" id="box3">3</div>
</div>
</body>
</html>