-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
80 lines (78 loc) · 1.79 KB
/
test.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
79
80
<style type="text/css">
.ascii-table {
font: medium/1 monospace;
margin: 1em;
display: inline-block;
position: relative;
}
.ascii-table table {
border-collapse: collapse;
}
.ascii-table td {
border: 1px dashed #000;
padding: .5em;
position: relative;
}
.ascii-table tr td:before {
position: absolute;
width: 15px;
height: 15px;
content: "";
top: -8px;
left: -8px;
}
.ascii-table tr td:last-child:after, .ascii-table tr:last-child td:after {
position: absolute;
width: 15px;
height: 15px;
content: "";
bottom: -8px;
right: -8px;
}
.ascii-table:before {
position: absolute;
width: 15px;
height: 15px;
content: "";
top: -7px;
right: -7px;
}
.ascii-table:after {
position: absolute;
width: 15px;
height: 15px;
content: "";
bottom: -7px;
left: -7px;
}
</style>
<div class="ascii-table">
<table>
<tr>
<td>Jill</td><td>Smith</td><td>50</td>
</tr>
</table>
</div>
<div class="ascii-table">
<table>
<tr>
<td>Jill</td><td>Smith</td><td>50</td>
</tr>
<tr>
<td>Eve</td><td>Jackson</td><td>94</td>
</tr>
</table>
</div>
<div class="ascii-table">
<table>
<tr>
<td>Jill</td><td>Smith</td><td>50</td>
</tr>
<tr>
<td>Eve</td><td>Jackson</td><td>94</td>
</tr>
<tr>
<td>John</td><td>Doe</td><td>75</td>
</tr>
</table>
</div>