Created
June 30, 2020 03:24
-
-
Save palanisamym14/d9965a0b331c8b11def9881aaf8538bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.select-style { | |
padding: 0; | |
margin: 0; | |
border: 1px solid #ccc; | |
width: 120px; | |
border-radius: 3px; | |
overflow: hidden; | |
background-color: #fff; | |
background-size:10px 10px; | |
background: #fff url("https://image.flaticon.com/icons/svg/892/892498.svg") no-repeat 40% 50%; | |
} | |
.select-style select { | |
padding: 5px 8px; | |
width: 130%; | |
border: none; | |
box-shadow: none; | |
background-color: transparent; | |
background-image: none; | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
} | |
.select-style select:focus { | |
outline: none; | |
} | |
<div class="select-style"> | |
<select> | |
<option value="volvo">Volvo</option> | |
<option value="saab">Saab</option> | |
<option value="mercedes">Mercedes</option> | |
<option value="audi">Audi</option> | |
</select> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment