-
Notifications
You must be signed in to change notification settings - Fork 0
/
Media_Quries.html
83 lines (41 loc) Β· 1.23 KB
/
Media_Quries.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Media_Queries</title>
<style>
.container{
height:500px;
width:400px;
background-color: aqua;
border: solid rgb(9, 226, 99) 4px;
}
/* In media quqery min-width means if the dimension of output crosses the given dimension in media query then it will be changed
in the given color in media query */
/* @media (min-width:500px){
.container{
background-color: rgb(3, 179, 27);
}
} */
/* Max-width means if the dimension of the output crosses the limit 0 to 500px then the color mentioned in the
media query will be applied to the display */
/* @media (max-width:600px){
.container{
background-color: rgb(231, 18, 135);
}
} */
/* We can provide also a range for colour changes */
@media (min-width:300px) and (max-width:600px){
.container{
background-color: rgb(131, 145, 8);
}
}
</style>
</head>
<body>
<div class="container">
This is shani soni
</div>
</body>
</html>