-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfixed.html
56 lines (55 loc) · 1.08 KB
/
fixed.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
<!DOCTYPE html>
<html>
<head>
<title>Position Fixed Madness</title>
<meta name="viewport" content="width=device-width" />
<style type="text/css">
body {
font: 100%/1.4em "Helvetica Neue",Helvetica,Arial,sans-serif;
color: #404040;
}
div{
padding: 0;
margin: 0;
line-height: 1em;
}
#results{
border: 1px solid green;
padding: 10px;
}
header{
background: #000;
color: #fff;
position: fixed;
top: 0;
left:0;
right: 0;
width: 100%;
}
h1{
margin-top: 2.2em;
}
@media screen and (orientation: portrait) {
header{
width: 100%;
}
}
</style>
</head>
<body>
<header>
<h2>I should be 100% wide</h2>
</header>
<h1>Position Fixed</h1>
<p>So many issues. But the one I'm specifically looking at here is Android 4.x.</p>
<h2>Steps</h2>
<ul>
<li>Double tap to zoom in</li>
<li>Change orientation</li>
<li>Change orientation again</li>
<li>Double tap to zoom out</li>
<li>Watch as header no longer fills width</li>
<li>Verbally curse Android native browser and cry</li>
</ul>
</body>
</html>