I literally just started coding like yesterday, and I want to remove this arrow that comes with the options in datalist:
datalist arrow
I’ve tried this:
input[type="search"]::-webkit-search-decoration {
display: none;
}
and every other "webkit-search".
2
Answers
could you add a pseudo element on top of the arrow and "cover" the arrow with it?
You can remove the list arrow by using
::-webkit-calendar-picker-indicator
selector and set the arrow todisplay none!important
; Please use !important to make sure the code working. If you don’t like to use display with !important, you can try to set the arrow’s color to transparent too by usinginput[list]::-webkit-calendar-picker-indicator {color:transparent;}
.Remember, using
[list]::-webkit-calendar-picker-indicator
to prevent your custom style applied toinput[type="date"]