-
Notifications
You must be signed in to change notification settings - Fork 14
/
borders_image-various-slicing-patterns.html
executable file
·85 lines (76 loc) · 2.22 KB
/
borders_image-various-slicing-patterns.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
81
82
83
84
85
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Various slicing patterns</title>
<link rel="stylesheet" type="text/css" href="c/pbom-baseline.css">
<style type="text/css">
body {float: left; width: auto;}
ol, li {padding: 1em 0 2em; margin: 0;}
ol li {list-style: none; float: left; margin: 0 4.5em;}
p.image-box {border: 1px solid black; width: 150px; height: 150px;
position: relative;}
p b {position: absolute; font: 1em Consolas, monospace; border: 1px dotted rgba(0,0,0,0.5);}
b.t, b.b {left: -3em; right: -3em;}
b.r, b.l {top: -2em; bottom: -2em; padding: 0 0.25em;}
b.t {border-width: 0 0 2px 0; top: 0;
background: url(i/arrow-down.png) no-repeat 88% 100%;
background-size: 10px auto;}
b.r {border-width: 0 0 0 2px; right: 0;
background: url(i/arrow-left.png) no-repeat 0% 92%;
background-size: auto 10px;}
b.b {border-width: 2px 0 0 0; bottom: 0;
background: url(i/arrow-up.png) no-repeat 12% 0%;
background-size: 10px auto;}
b.l {border-width: 0 2px 0 0; left: 0;
background: url(i/arrow-right.png) no-repeat 100% 8%;
background-size: auto 10px;}
p b i {position: absolute; font-style: normal;}
b.t i {right: 0%; bottom: 0%; margin-bottom: 0;}
b.r i {bottom: -0.25em; left: 0%; margin-left: 0.25em;}
b.b i {left: 0%; top: 0%; margin-top: 0.125em;}
b.l i {top: 0%; right: 0%; margin-right: 0.25em;}
#li01 b.t {bottom: 90%;}
#li01 b.r {left: 80%;}
#li01 b.b {top: 70%;}
#li01 b.l {right: 40%;}
#li02 b.t {bottom: 60%;}
#li02 b.r {left: 70%;}
#li02 b.b {top: 80%;}
#li02 b.l {right: 90%;}
#li03 b.t {bottom: 67%;}
#li03 b.r {left: 67%;}
#li03 b.b {top: 67%;}
#li03 b.l {right: 67%;}
</style>
</head>
<body>
<ol>
<li id="li01">
<p class="image-box">
<b class="t"><i>10%</i></b>
<b class="r"><i>20%</i></b>
<b class="b"><i>30%</i></b>
<b class="l"><i>40%</i></b>
</p>
</li>
<li id="li02">
<p class="image-box">
<b class="t"><i>40%</i></b>
<b class="r"><i>30%</i></b>
<b class="b"><i>20%</i></b>
<b class="l"><i>10%</i></b>
</p>
</li>
<li id="li03">
<p class="image-box">
<b class="t"><i>33%</i></b>
<b class="r"><i>33%</i></b>
<b class="b"><i>33%</i></b>
<b class="l"><i>33%</i></b>
</p>
</li>
</ol>
</body>
</html>