@rjlevy/

CSS: arrow inside select menu > Fontawesome

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • reference.txt
  • 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
<!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" />
    <script src="https://kit.fontawesome.com/8fa4e737a5.js"></script>
  </head>
  <body>

    <h3>Down arrow inside select menu</h3>
    
    <i class="fas fa-sort-down"></i>

    <div class="select-wrapper">
      <select>
        <option value="option-1">Option 1</option>
        <option value="option-2">Option 2</option>
        <option value="option-3">Option 3</option>
      </select>
    </div>

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