forked from kbalog/uis-dat310-spring2016
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exercise1.html
43 lines (40 loc) · 823 Bytes
/
exercise1.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
<!DOCTYPE html>
<html>
<head>
<title>Exercise #1: Hiding from a list</title>
<style>
ul {
padding-left: 0;
}
li {
display: inline-block;
width: 3em;
border: 1px solid black;
background-color: #0033cc;
color: white;
font-weight: bold;
text-align: center;
}
#n1, #n3, #n5, #n7, #n9 {
display: none;
}
#n2, #n3, #n5, #n7 {
visibility: hidden;
}
</style>
</head>
<body>
<ul>
<li id="n1">1</li>
<li id="n2">2</li>
<li id="n3">3</li>
<li id="n4">4</li>
<li id="n5">5</li>
<li id="n6">6</li>
<li id="n7">7</li>
<li id="n8">8</li>
<li id="n9">9</li>
<li id="n10">10</li>
</ul>
</body>
</html>