@rjlevy/

CSS: solid arrows, right / left / up / down

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • style.css
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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" 
    <link href="https://fonts.googleapis.com/css?family=Open+Sans|Source+Sans+Pro|Source+Serif+Pro&display=swap" rel="stylesheet">
  </head>
  <body>

    <h3>These arrows are created with CSS borders</h3>
    <div class="arrow-solid-right"></div>
    <div class="arrow-solid-left"></div>
    <div class="arrow-solid-up"></div>
    <div class="arrow-solid-down"></div>

    <h3>These arrows are HTML entities</h3>
    <span class="">▲</span>
    <span class="">▼</span>
    <span class="">▶</span>
    <span class="">◀</span>

    <br/>

    <span class="arrow-up">▲</span>
    <span class="arrow-down">▼</span>
    <span class="arrow-right">▶</span>
    <span class="arrow-left">◀</span>

    <script src="script.js"></script>
  </body>
</html>
result
console