-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (85 loc) · 1.85 KB
/
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
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
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
}
.c1 {
color: #ddd;
background-color: #003476;
}
.c2 {
color: #ddd;
background-color: #0062d2;
}
.c3 {
color: #333;
background-color: #b4d2f7;
}
.c4 {
color: #333;
background-color: #d5dfef;
}
.c5 {
color: #333;
background-color: #dfe1e5;
}
.container div {
box-sizing: border-box;
min-height: 150px;
min-width: 150px;
}
.container {
margin: 0;
padding: 0;
width: 100%;
display: flex;
flex-flow: row wrap;
}
.c1, .c2, .c3, .c4, .c5 {
width: 100%;
}
@media (min-width: 600px) {
.c2, .c3, .c4, .c5 {
width: 50%;
}
}
@media (min-width: 800px) {
.c1 {
width: 60%;
}
.c2 {
width: 40%;
}
.c3, .c4, .c5 {
width: 33.33%;
}
}
@media (min-width: 800px) {
.container {
width: 800px;
margin-left: auto;
margin-right: auto;
}
}
</style>
<title>Responsive Web Design Pattern: Mostly Fluid</title>
</head>
<body>
<div class="container" role="main">
<div class="c1">
</div>
<div class="c2">
</div>
<div class="c3">
</div>
<div class="c4">
</div>
<div class="c5">
</div>
</div>
</body>
</html>