Ajax Loader
×
HTML
<label>
1
<label>
2
    <select>
3
        <option selected> Select Box </option>
4
        <option>Short Option</option>
5
        <option>This Is A Longer Option</option>
6
    </select>
7
</label>
 
CSS
body, html {background:#444; text-align:center; padding:50px 0;}
1
body, html {background:#444; text-align:center; padding:50px 0;}
2
 
3
/* The CSS */
4
select {
5
    padding:3px;
6
    margin: 0;
7
    -webkit-border-radius:4px;
8
    -moz-border-radius:4px;
9
    border-radius:4px;
10
    -webkit-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
11
    -moz-box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
12
    box-shadow: 0 3px 0 #ccc, 0 -1px #fff inset;
13
    background: #f8f8f8;
14
    color:#888;
15
    border:none;
16
    outline:none;
17
    display: inline-block;
18
    -webkit-appearance:none;
19
    -moz-appearance:none;
20
    appearance:none;
21
    cursor:pointer;
22
}
23
 
24
/* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */
25
@media screen and (-webkit-min-device-pixel-ratio:0) {
26
    select {padding-right:18px}
27
}
28
 
29
label {position:relative}
30
label:after {
31
    content:'<>';
32
    font:11px "Consolas", monospace;
33
    color:#aaa;
34
    -webkit-transform:rotate(90deg);
35
    -moz-transform:rotate(90deg);
36
    -ms-transform:rotate(90deg);
37
    transform:rotate(90deg);
38
    right:8px; top:2px;
39
    padding:0 0 2px;
40
    border-bottom:1px solid #ddd;
41
    position:absolute;
42
    pointer-events:none;
43
}
44
label:before {
45
    content:'';
46
    right:6px; top:0px;
47
    width:20px; height:20px;
48
    background:#f8f8f8;
49
    position:absolute;
50
    pointer-events:none;
51
    display:block;
52
}
 

Untitled

CSSDeck G+