Saltar al contenido

cómo cambiar el color del resaltado azul en el cuadro de selección desplegable ejemplo de código CSS

Puede darse el caso de que encuentres algún fallo con tu código o proyecto, recuerda probar siempre en un ambiente de testing antes añadir el código al proyecto final.

Ejemplo: cambiar el color azul del cuadro de selección predeterminado

/*with a little bit of styling and javascript, you can have a select box with coloured options*//*Note that size attribute = 2 or greater plays an important role here*/>
select option:checkedbackground:#ff9500-webkit-linear-gradient(bottom,#ff95000%,#ff9500100%);select option:hoverbackground:#ff9500-webkit-linear-gradient(bottom,#ff95000%,#ff9500100%);color:#fff;select optionpadding:8px;selectz-index:1800;position: absolute;background:#fff;height:33px;overflow: hidden;width:30%;outline: none;>