Search code examples
htmlcssdatedatepickercalendar

Is there a way to change HTML Date picker's popup background color?


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


Solution

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

    .datepickerbg {
      color-scheme: dark;
    }
    <input type="date" class="datepickerbg" />