Debian Codegraph @

t/data/visible.html

raw
1 <!DOCTYPE html>
2 <html lang="en-au">
3 <head>
4 <meta charset="utf-8">
5 <title>Percentage Visible test</title>
6 <style>
7 .navbar {
8 position: fixed;
9 background-color: green;
10 top: 0px;
11 left: 0px;
12 height: 25%;
13 width: 100%;
14 z-index: 10;
15 }
16 .content {
17 background-color: yellow;
18 height: 650px;
19 }
20 .display_none {
21 position: fixed;
22 background-color: blue;
23 top: 0px;
24 left: 0px;
25 height: 100%;
26 width: 100%;
27 z-index: 20;
28 display: none;
29 }
30 .visibility_hidden {
31 position: fixed;
32 background-color: red;
33 top: 0px;
34 left: 0px;
35 height: 100%;
36 width: 100%;
37 z-index: 20;
38 visibility: hidden;
39 }
40 .visibility_collapse {
41 position: fixed;
42 background-color: purple;
43 top: 0px;
44 left: 0px;
45 height: 100%;
46 width: 100%;
47 z-index: 20;
48 visibility: collapse;
49 }
50 </style>
51 </head>
52 <body>
53 <div class="navbar">Navigation Bar</div>
54 <div class="display_none">Should not see me</div>
55 <div class="visibility_hidden">Should not see me either</div>
56 <div class="visibility_collapse">Should have collapsed</div>
57 <div class="content">Content</div>
58 <form action="http://localhost">
59 <input type="text" id="username"/>
60 </form>
61 <div class="content">Content</div>
62 </body>
63 </html>