html select image background arrow

Solutions on MaxInterview for html select image background arrow by the best coders in the world

showing results for - "html select image background arrow"
Veronica
01 May 2017
1select {
2  width: 300px;
3  padding: 12px;
4  border: 0 !important;
5  background-color: lightblue;
6  /* needed */
7  -webkit-appearance: none;
8  -moz-appearance: none;
9  appearance: none;
10  /* SVG background image */
11  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
12  background-size: .6em;
13  background-position: calc(100% - 1.3em) center;
14  background-repeat: no-repeat;
15}
16
17/*Go to https://codepen.io/herrfischer/pen/aNpWwy to see how it looks*/
Emanuele
06 Jun 2018
1select {
2  width: 300px;
3  padding: 12px;
4  border: 0 !important;
5  background-color: lightblue;
6  /* needed */
7  -webkit-appearance: none;
8  -moz-appearance: none;
9  appearance: none;
10  /* SVG background image */
11  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
12  background-size: .6em;
13  background-position: calc(100% - 1.3em) center;
14  background-repeat: no-repeat;
15}
16
Rébecca
06 Jan 2018
1select {
2  width: 300px;
3  padding: 12px;
4  border: 0 !important;
5  background-color: lightblue;
6  /* needed */
7  -webkit-appearance: none;
8  -moz-appearance: none;
9  appearance: none;
10  /* SVG background image */
11  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
12  background-size: .6em;
13  background-position: calc(100% - 1.3em) center;
14  background-repeat: no-repeat;
15}
16