Streaming live at 10am (PST)

Form Select Field custom icon

Hi,

Has anyone utilised custom code to change the arrow icon within a form select field to a custom icon?

Any help appreciated.

Thanks


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hi is anyone able to help?

Thanks,

Scott

@scottalexwatson I guess is it possible, but your link is not working. And which kind of icon?

Hi Matthias,

Apologies I never added a link. Here it is below.

Attached is an idea of how I would like the form select field to look.

https://preview.webflow.com/preview/eg-filter-test?utm_medium=preview_link&utm_source=dashboard&utm_content=eg-filter-test&preview=0e77cada7b9712d33a1b4121f2e5f378&mode=preview

@scottalexwatson I tried it yesterday to get a solution for your issue. And yes its possible!

<style>
.w-select {
/* resetting default form style*/
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
}

.select-wrapper::before {
  background-image: url(https://uploads-ssl.webflow.com/your-icon.png);
  background-size: 20px 20px;
  height: 20px;
  width: 20px;
  display: inline-block;
  content:"";
  position: absolute;
  right: 15px;
  top: 10px;
}

</style>

And you have to wrap your “Select Field” with a wrapper.
image

Hi Matthias,

This is perfect thanks so much for your help!

Cheers

Scott