-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmediaquery.html
More file actions
112 lines (104 loc) · 2.88 KB
/
mediaquery.html
File metadata and controls
112 lines (104 loc) · 2.88 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
<!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>
.box{
width:100%;
}
.one{
width: 12%;
float: left;
margin: 0.2%;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
text-align:center;
}
img{
width: 100%;
}
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
.box{
width: 100%;
}
.one{
width: 100%;
margin: 1%;
}
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
.box
{
width: 100%;
}
.one{
width: 48%;
margin: 0.5%;
}
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
.box
{
width: 100%;
}
.one{
width: 24%;
margin: 0.5%;
}
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
.box
{
width: 100%;
}
.one{
width: 12%;
margin: 0.2%;
}
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}
</style>
</head>
<body>
<div class="box">
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
<div class="one">
<img src="https://tse1.mm.bing.net/th?id=OIP.1YM53mG10H_U25iPjop83QHaEo&pid=Api&P=0&h=220">
<h5>web designing</h5>
</div>
</div>
</body>
</html>