-
Notifications
You must be signed in to change notification settings - Fork 193
/
Copy pathorder-list.html
78 lines (70 loc) · 1.47 KB
/
order-list.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Reverse Ordered List</title>
<style>
ol {
list-style: none;
margin: 0;
padding: 0;
}
li {
margin: 0;
padding: 0;
}
html {
background: #eef;
font-family: "Helvetica Neue", "Arial";
}
body {
background-color: #fff;
margin: 100px;
padding: 20px;
}
ol.numbered {
border-left: 3px solid #b3b3b3;
counter-reset: numbered-list 7;
margin-left: 10px;
position: relative;
}
ol.numbered li {
font-size: 16px;
line-height: 1.2;
margin-bottom: 30px;
padding-left: 30px;
}
ol.numbered li:last-child {
border-left: 3px solid white;
margin-left: -3px;
}
ol.numbered li:before {
background-color: #b3b3b3;
border: 3px solid white;
border-radius: 50%;
color: white;
content: counter(numbered-list,decimal);
counter-increment: numbered-list -1;
display: block;
font-weight: bold;
width: 30px;
height: 30px;
margin-top: -0.5em;
line-height: 30px;
position: absolute;
left: -19.5px;
text-align: center;
}
</style>
</head>
<body>
<ol class="numbered reversed">
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four<br>and a new line</li>
<li>List item five</li>
<li>List item six</li>
</ol>
</body>
</html>