-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplay.html
46 lines (28 loc) · 1.13 KB
/
display.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
<!Doctype html>
<html>
<head>
<style type="text/css">
h1.hidden {visibility:hidden;}
h1.dn {display:none;}
li {display:inline;}
</style>
<title>CSS Display and Visibility</title>
</head>
<body>
<h1>CSS Display and Visibility</h1>
<h4>hiding an element can be done by setting the display property to "none" or the visibility property to "hidden". None Hidden elements still affect layout</h4>
<h1>This is a visible heading</h1>
<h1 class="hidden">This is a hidden heading</h1>
<p>Notice that the hidden heading still takes up space.</p>
<h1>This is a visible heading</h1>
<h1 class="dn">This is a hidden heading</h1>
<p>Notice that the hidden heading does not take up space.</p>
<h4>You can change the way an element is displayed</h4>
<p>Display this unordered list as a horizontal menu:</p>
<ul>
<li><a href="http://www.w3schools.com/html/default.asp">HTML</a></li>
<li><a href="http://www.w3schools.com/css/default.asp">CSS</a></li>
<li><a href="http://www.w3schools.com/js/default.asp">JavaScript</a></li>
</ul>
</body>
</html>