forked from ambujraj/hacktoberfest2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arrow.html
66 lines (59 loc) · 1.46 KB
/
arrow.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Arrow</title>
<style>
*,
*:before,
*:after {
box-sizing: border-box;
}
body {
text-align: center;
}
.arrow {
width: 100px;
height: 100px;
margin: 20px;
display: inline-block;
position: relative;
}
.arrow::before {
content: '';
display: block;
width: 30px;
height: 30px;
top: 50%;
left: 50%;
border-style: solid;
border-color: #000;
border-width: 2px 2px 0 0;
position: absolute;
transform-origin: 50% 50%;
transform: rotate(45deg);
margin: -15px 0 0 -20px;
}
.arrow::after {
content: '';
display: block;
top: 50%;
left: 50%;
border-style: solid;
border-color: #000;
position: absolute;
transform-origin: 50% 50%;
width: 40px;
height: 0;
border-width: 2px 0 0 0;
transform: translate(-26px, -1px);
}
</style>
</head>
<body>
<h1>Arrow</h1>
<span class="arrow"></span>
</body>
</html>