-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex31.html
More file actions
50 lines (50 loc) · 1.17 KB
/
Copy pathindex31.html
File metadata and controls
50 lines (50 loc) · 1.17 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Media Query</title>
<style>
body{
background-color: #f00;
}
@media screen and (orientation:landscape) {
body{
color: yellow;
}
}
@media only screen and (max-width:455px){
body{
background-color: blue;
}
/*
@media not|only mediatype and (expressions) {
css-code;
} */
.boxes{
flex-direction: column;
}
}
.box{
width: 344px;
height: 344px;
background-color: greenyellow;
padding: 3px;
margin: 3px;
}
.boxes{
display: flex;
}
</style>
</head>
<body>
<div>
Hi! I am a Red Body Guy
</div>
<div class="boxes">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</body>
</html>