Skip to content

Instantly share code, notes, and snippets.

@vicainelli
Last active December 21, 2015 07:49
Show Gist options
  • Save vicainelli/6274347 to your computer and use it in GitHub Desktop.
Save vicainelli/6274347 to your computer and use it in GitHub Desktop.
Custom select
<select name="" id="" class="select">
<option value="">Opção 1</option>
<option value="">Opção 2</option>
<option value="">Opção 3</option>
</select>
$(document).ready(function(){
$('.select').customSelect();
});
.select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: 1px solid #c9c9c9;
padding: 4px 60px 4px 4px;
border-radius: 3px;
font-size: 16px;
font-family: Arial;
background: url('http://i.imgur.com/ELjekQy.png') no-repeat 95% 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment