/
test.css
65 lines (57 loc) · 1.26 KB
/
test.css
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
/*
This is just a test file for making sure the script is working properly.
If it is, the media queries below will change the body's background color depending on the browser width.
For a realistic use case for media queries: read up on Responsive Web Design:
http://www.alistapart.com/articles/responsive-web-design/
*/
body {
background: black;
color: #333;
font-family: Helvetica, sans-serif;
}
p {
width: 60%;
min-width: 300px;
max-width: 700px;
margin: 2em auto;
background: #fff;
padding: 20px;
}
a {
color: #333;
}
/* hide the attribute-test element. test2.css will show it */
#attribute-test {
display: none;
}
/*styles for 480px and up!*/
@media only screen and (min-width: 480px), only screen and (max-width: 620px) {
body {
background: green;
}
}
/*/mediaquery*/
/*styles for 620px and up!*/
@media screen and (min-width: 620px), only print, projector {
body {
background: red;
}
}/*/mediaquery*/
/*styles for 800px and up!*/
@media screen and (min-width: 800px){
body {
background: blue;
}
}/*/mediaquery*/
/*styles for 1100px and up!*/
@media screen and (min-width: 1100px){
body {
background: orange;
}
}/*/mediaquery*/
/*styles for 1300px and up!*/
@media screen and (min-width: 1300px){
body {
background: navy;
}
}/*/mediaquery*/