-
Notifications
You must be signed in to change notification settings - Fork 14
/
borders_image-slice-lines-at-33pct.html
executable file
·62 lines (55 loc) · 1.9 KB
/
borders_image-slice-lines-at-33pct.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
<!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>Placement of percentage slice-lines</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: 23em; height: 10em;
position: relative;}
p.image-box img {opacity: 0.5;}
p b {position: absolute; font: 1em Consolas, monospace; border: 1px dotted rgba(0,0,0,0.5); box-sizing: border-box;}
b.t, b.b {left: -3em; right: -3em;}
b.r, b.l {top: -2em; bottom: -2em;}
b.t {border-width: 0 0 2px 0; top: 0;
background: url(i/arrow-down.png) no-repeat 92% 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 8% 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, #li01 b.b {height: 33%;}
#li01 b.r, #li01 b.l {width: 33%;}
#obe {position: absolute; top: -1.25em; left: 0; right: 0;
text-align: center;}
</style>
</head>
<body>
<ol>
<li id="li01">
<p class="image-box">
<!-- img src="i/elementbox-border.png" -->
<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>
<em id="obe">outer border edge</em>
</p>
</li>
</ol>
</body>
</html>