-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
responsive-test-template.html
105 lines (99 loc) · 3.44 KB
/
responsive-test-template.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
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Responsive Test Template</title>
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="">
<style>
/*This template was created as a helper, so when you're building a site and you need to test how it looks at different sizes, when you resize the screen this will display a 'banner' at the top telling you what view you're currently looking at.*/
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
}
.test {
margin: 0;
border: 1px solid #333;
background-color: #eee;
padding: 10px;
text-align: center;
}
/*X-Small devices (portrait phones, 575px and less)*/
@media (max-width: 575px) {
.test0{display:block;}
.test1{display:none;}
.test2{display:none;}
.test3{display:none;}
.test4{display:none;}
.test5{display:none;}
}
/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
.test0{display:none;}
.test1{display:block;}
.test2{display:none;}
.test3{display:none;}
.test4{display:none;}
.test5{display:none;}
}
/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
.test0{display:none;}
.test1{display:none;}
.test2{display:block;}
.test3{display:none;}
.test4{display:none;}
.test5{display:none;}
}
/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
.test0{display:none;}
.test1{display:none;}
.test2{display:none;}
.test3{display:block;}
.test4{display:none;}
.test5{display:none;}
}
/*X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
.test0{display:none;}
.test1{display:none;}
.test2{display:none;}
.test3{display:none;}
.test4{display:block;}
.test5{display:none;}
}
/*XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {
.test0{display:none;}
.test1{display:none;}
.test2{display:none;}
.test3{display:none;}
.test4{display:none;}
.test5{display:block;}
}
</style>
</head>
<body>
<p class="test test0">X-Small devices (portrait phones, 575px and smaller)</p>
<p class="test test1">Small devices (landscape phones, 576px and up)</p>
<p class="test test2">Medium devices (tablets, 768px and up)</p>
<p class="test test3">Large devices (desktops, 992px and up)</p>
<p class="test test4">X-Large devices (large desktops, 1200px and up)</p>
<p class="test test5">XX-Large devices (larger desktops, 1400px and up)</p>
<header></header>
<nav role="navigation" aria-label="primary"></nav>
<main role="main">
<article role="article"></article>
<section role="region"></section>
<form role="search" aria-label="site"></form>
</main>
<aside role="complementary" aria-label="side bar"></aside>
<footer role="contentinfo"></footer>
</body>
</html>