-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
79 lines (76 loc) · 1.87 KB
/
index.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
<!DOCTYPE html>
<html dir="ltr" lang="en-en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IMGsandwich</title>
<style>
body { background: url(bg.png) repeat 50% 50%; }
.container { width: 600px; margin: 0 auto; padding-top: 200px; }
nav { font: italic 12px/1.75 Corbel,'Lucidia Grande','Lucida Sans','Lucida Sans Unicode',Arial,sans-serif; overflow: auto; }
nav a {
float: right;
margin-right: 17px;
color: #fff;
text-decoration:none;
}
nav a:first-child {
float: left;
margin-left: 17px;
}
nav a span {
background: url(sprite.png) repeat-x 0 -24px;
height: 24px;
display: inline-block;
padding: 0 8px;
position: relative;
}
/* all red bg */
nav a span:hover {
background-position: 0 -144px;
}
/* no positions */
nav a span:before,
nav a span:after
{
content:"";
position: absolute;
height: 24px;
width: 17px;
background: url(sprite.png) no-repeat;
}
/* links hintern */
nav a span.forward:before {
left: -17px;
background-position: 12px 0;
}
nav a span.forward:hover:before { background-position: 12px -120px; }
/* links spitze */
nav a span.forward:after {
right: -17px;
background-position: 0 -48px;
}
nav a span.forward:hover:after { background-position: 0 -168px; }
/* rechts hintern */
nav a span.backward:after {
right: -17px;
background-position: 0 -72px;
}
nav a span.backward:hover:before { background-position: 0 -216px; }
/* rechts spitze */
nav a span.backward:before {
left: -17px;
background-position: 0px -96px;
}
nav a span.backward:hover:after { background-position: 0px -192px; }
</style>
</head>
<body>
<div class="container">
<!-- example -->
<nav>
<a href="" ><span class="forward">newer</span></a>
<a href="" ><span class="backward">older</span></a>
</nav>
</div>
</body>
</html>