- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Are there any style options for the HTML5 Date picker?
The date picker in HTML5 shows a popup like a calendar. This is the same as selecting the months and years and this adds the date.
Example
You can also customize the popup and add background color as well. You can try to run the following code to add style options for HTML date picker −
::-webkit-datetime-edit { padding: 4 em; } ::-webkit-datetime-edit-fields-wrapper { background:blue; } ::-webkit-datetime-edit-text { padding: 0 0.5em; }
The following is to edit a month, day and year field −
::-webkit-datetime-edit-month-field { color: white; } ::-webkit-datetime-edit-day-field { color: red; } ::-webkit-datetime-edit-year-field { color: red; } ::-webkit-calendar-picker-indicator { background:gray; }
- Related Articles
- Style options for the HTML5 Date picker
- Are there any certification exams available for Python?
- Listing down various options for input values in HTML5
- C-style parser for command line options in Python
- Create a Date Picker Calendar in Tkinter
- How to select the Date Picker In Selenium WebDriver?
- How to use date time picker in Android?
- How to create a date picker using JavaFX?
- Style select options with CSS
- How do I create a date picker in tkinter?
- How to display date and time picker in ReactNative?
- Is there any way to embed a PDF file into an HTML5 page?
- What are the options for jQuery Animated Effects?
- Is there any precautionary medicine available for Dengue?
- Is there any alternative for CONCAT() in MySQL?

Advertisements