-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMedia2.html
108 lines (58 loc) Β· 1.4 KB
/
Media2.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
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media </title>
<style>
.con{
background-color: aqua;
border: solid rgb(0, 0, 0) 4px;
height:450px;
width:500px;
display: flex;
/* flex-direction: column; */
}
.box{
border: solid yellow 5px;
background-color: rgb(40, 172, 14);
height: 200px;
width: 200px;
}
#a{
background-color: blue;
border: solid rgb(202, 75, 1) 5px;
}
#b{
background-color:rgb(83, 0, 160);
border: solid rgb(0, 66, 104) 5px;
}
#c{
background-color: cadetblue;
border: solid rgb(221, 10, 133) 5px;
}
#d{
background-color: bisque;
border: solid rgb(216, 216, 11) 5px;
}
@media(min-width:500px){
.con{
flex-direction: row;
}
}
@media(max-width:500px){
.con{
flex-direction: column;
}
}
</style>
</head>
<body>
<div class="con">
<div class="box " id="a">Box1</div>
<div class="box " id="b">Box2</div>
<div class="box " id="c">Box3</div>
<div class="box " id="d">Box4</div>
</div>
</body>
</html>