-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (42 loc) · 996 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<!--
TODO: Change the background color for each device
[lightsalmon] Mobile Devices: 319px — 480px
[powderblue] iPads and Tablets: 481px — 1200px
[limegreen] Laptops: 1201px — 1600px
[seagreen] Desktops: 1601px and more
-->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<title>Media Query</title>
<style>
body {
background-color: aquamarine;
}
@media (max-width: 480px) and (min-width: 319px) {
body {
background-color: lightsalmon;
}
}
@media (max-width: 1200px) and (min-width: 481px) {
body {
background-color: powderblue;
}
}
@media (max-width: 1600px) and (min-width: 1201px) {
body {
background-color: limegreen;
}
}
@media (min-width:1601px) {
body {
background-color: seagreen;
}
}
</style>
</head>
<body>
</body>
</html>