
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 Questions & Answers
- Style options for the HTML5 Date picker
- Is there any precautionary medicine available for Dengue?
- Is there any alternative for CONCAT() in MySQL?
- C-style parser for command line options in Python
- Are there any Male animals which become pregnant?
- Listing down various options for input values in HTML5
- What are the options for jQuery Animated Effects?
- Style select options with CSS
- How to select the Date Picker In Selenium WebDriver?
- Create a Date Picker Calendar in Tkinter
- Are there any ways to Manipulate Strings in Java.
- Is there any way to embed a PDF file into an HTML5 page?
- Is there any alternative solution for static constructor in java?
- Is there any alternative for OpenCV imshow() method in Java?
- How to use date time picker in Android?
Advertisements