-
Notifications
You must be signed in to change notification settings - Fork 1
/
06-control-logic.html
42 lines (39 loc) · 1.37 KB
/
06-control-logic.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
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.container { width: 960px; margin: 20px auto; }
.pseudo-meter {
display: block;
height: 20px;
text-indent: -9999px;
background-color: gray;
}
.pseudo-meter.value-0 { width: 0%; }
.pseudo-meter.value-1 { width: 10%; }
.pseudo-meter.value-2 { width: 20%; }
.pseudo-meter.value-3 { width: 30%; }
.pseudo-meter.value-4 { width: 40%; }
.pseudo-meter.value-5 { width: 50%; }
.pseudo-meter.value-6 { width: 60%; }
.pseudo-meter.value-7 { width: 70%; }
.pseudo-meter.value-8 { width: 80%; background-color: red; }
.pseudo-meter.value-9 { width: 90%; background-color: red; }
.pseudo-meter.value-10 { width: 100%; background-color: red; }
</style>
</head>
<body>
<div class='container'>
<div class="pseudo-meter value-1">1</div>
<div class="pseudo-meter value-2">2</div>
<div class="pseudo-meter value-3">3</div>
<div class="pseudo-meter value-4">4</div>
<div class="pseudo-meter value-5">5</div>
<div class="pseudo-meter value-6">6</div>
<div class="pseudo-meter value-7">7</div>
<div class="pseudo-meter value-8">8</div>
<div class="pseudo-meter value-9">9</div>
<div class="pseudo-meter value-10">10</div>
</div>
</body>
</html>