-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
88 lines (74 loc) · 1.91 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
80
81
82
83
84
85
86
87
88
<html>
<head>
<title>Style select with pure CSS!</title>
<style>
@font-face {
font-family: 'FontAwesome';
src: url("fonts/fontawesome-webfont.eot?v=4.0.3");
src: url("fonts/fontawesome-webfont.eot?#iefix&v=4.0.3") format("embedded-opentype"), url("fonts/fontawesome-webfont.woff?v=4.0.3") format("woff"), url("fonts/fontawesome-webfont.ttf?v=4.0.3") format("truetype"), url("fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular") format("svg");
font-weight: normal;
font-style: normal;
}
.wrapper {
position: relative;
width: 150px;
}
.dropdown {
border: 1px solid #2CA7E5;
}
select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background: transparent;
border: none;
color: #1455A2;
outline: none;
width: 100%;
padding: 6px;
text-indent: 0.01px;
text-overflow: "";
}
.dropdown:after {
background: none repeat scroll 0 0 #2CA7E5;
color: #FFFFFF;
content: "\f078";
font-family: 'FontAwesome';
font-size: 14px;
padding: 8px;
position: absolute;
right: 0;
top: 0;
bottom: 0;
z-index: -1;
}
/* This hides dropdown button arrow in IE */
select::-ms-expand {
display: none;
}
/* This hides focus around selected option in FF */
select:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #000;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="dropdown">
<select>
<option>18 per page</option>
<option>10 per page</option>
<option>5 per page</option>
<option>A very long option to overflow arrow</option>
</select>
</div>
</div>
<div style="margin-top: 20px; width: 280px;">
UserAgent:
<script>
document.writeln(navigator.userAgent);
</script>
</div>
</body>
</html>