CSS Date Picker Archives - csshint - A designer hub https://csshint.com/tag/css-date-picker/ Sun, 26 Jul 2020 08:13:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.4 PURE CSS Date Picker https://csshint.com/pure-css-date-picker/ Sun, 26 Jul 2020 08:11:12 +0000 http://csshint.com/?p=2835 hey guys if you are looking of PURE CSS Date Picker example then you are in right place, Because i am sharing pure css Date picker example with source code. You can also download Zip file Also. Code By: Gary Pratt from Codepen 1. The HTML [code language=”Html”] <div class="coc-form"> <div class="coc-block-row"> <label class="coc-block-label" for="dateofbirth">Date […]

The post PURE CSS Date Picker appeared first on csshint - A designer hub.

]]>
hey guys if you are looking of PURE CSS Date Picker example then you are in right place, Because i am sharing pure css Date picker example with source code. You can also download Zip file Also.

PURE CSS Date Picker

PURE CSS Date Picker


Code By: Gary Pratt from Codepen

1. The HTML

[code language=”Html”]
<div class="coc-form">
<div class="coc-block-row">
<label class="coc-block-label" for="dateofbirth">Date Of Birth</label>
<div class="coc-block">
<input class="coc-input" type="date" name="dateofbirth" id="dateofbirth">
</div>
</div>
</div>
[/code]

2. CSS

[code language=”css”]
[type="date"] {
background:#fff url(https://cdn1.iconfinder.com/data/icons/cc_mono_icon_set/blacks/16×16/calendar_2.png) 97% 50% no-repeat ;
}
[type="date"]::-webkit-inner-spin-button {
display: none;
}
[type="date"]::-webkit-calendar-picker-indicator {
opacity: 0;
}

/* custom styles */
body {
font: 13px Verdana, sans-serif;
}
label {
display: block;
}
input {
border: 1px solid #c4c4c4;
background-color: #fff;
width: 95px;
}

.coc-block-row {
width: 100%;
/*display:table-row;*/
}
.coc-block {
display: table-cell;
vertical-align: middle;
padding-bottom: 3px;
}
.coc-block-label {
font-family: Verdana;
display: table-cell;
vertical-align: middle;
text-align: right;
padding-bottom: 3px;
padding-right: 5px;
font-weight: bold;
margin-bottom: 0;
}
.coc-input {
font-family: Calibri;
height: 20px;
font-size: 12px;
padding-left: 3px;
padding-right: 3px;
border: 1px solid #999;
/* variations */
}
.coc-form {
padding-top: 5px;
padding-left: 8px;
}

[/code]

PURE CSS Date Picker

The post PURE CSS Date Picker appeared first on csshint - A designer hub.

]]>