-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia.css
87 lines (67 loc) · 1.24 KB
/
media.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
h1{
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
text-align: center;
}
h5, h4, h3, h2{
text-align: center;
font-size: 30px;
display: none;
}
img{
margin: auto;
width: 20%;
display: block;
}
/*---------Mobile View-----*/
@media (max-width:500px){
body{
/*backgroung:linear-gradient(45deg,green,black,blue); */
background: lightcoral;
}
h5{
display: block;
}
p{
color: white;
}
}
/*----Tablet View-------------*/
@media(min-width:501px) and (max-width:800px){
body{
background: lightgreen;
}
h4{
display: block;
}
p{
color: red;
font-size: large;
}
}
/*--------laptop view------*/
@media (min-width:801px) and (max-widt::1200px){
body{
background: violet;
}
h3{
display: block;
}
p{
color: teal;
font-size: large;
}
}
/*--------x-large--------*/
@media (min-width:1200px){
body{
background: orchid;
}
h2{
display: block;
}
p{
font-family: Georgia, 'Times New Roman', Times, serif;
color: red;
font-size: 2rem;
}
}