-
Notifications
You must be signed in to change notification settings - Fork 0
/
CSS_challenge2.html
46 lines (45 loc) · 1.1 KB
/
CSS_challenge2.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
p{
}
@media screen and (min-width: 1200px ) {
body{
background-color: rgb(238, 98, 98);
color: white;
}
}
@media screen and (max-width: 1200px) {
body{
background-color: rgb(83, 83, 244);
color: white;
}
}
@media screen and (max-width: 900px) {
body{
background-color: rgb(186, 246, 97);
color: black;
}
}
@media screen and (max-width: 500px) {
body{
background-color: plum;
color: black;
}
}
</style>
</head>
<body>
<p>화면의 폭마다 색깔 다르게 하기 </p>
</body>
</html>