0

Here, I am using

<input type="date" style="position: absolute"> tag to create a date picker. I want to change the default white color background to another color. Is there anyway to achieve this?

enter image description here

Kusal Kithmal
  • 1,255
  • 1
  • 10
  • 25

1 Answers1

3

Try this code.i have used to color-scheme css

.datepickerbg {
  color-scheme: dark;
}
<input type="date" class="datepickerbg" />
Mitali Patel
  • 395
  • 2
  • 9
  • Damn! This works! Thanks for your answer :) The only limitation when using color-scheme is we have limited number of predefined values. As below, color-scheme: normal; color-scheme: light; color-scheme: dark; color-scheme: light dark; color-scheme: only light; – Kusal Kithmal Mar 21 '23 at 07:08