Wednesday, June 11, 2014

Big Checkbox with HTML CSS

<style>
label {
display: inline;
}
.regular-checkbox {
display: none;
}
.regular-checkbox + label {
vertical-align:middle;
border: 3px solid red;
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
padding: 9px;
display: inline-block;
position: relative;
}
.regular-checkbox + label:active, .regular-checkbox:checked + label:active {
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}
.regular-checkbox:checked + label {
vertical-align:middle;
background-color: transparent;
border: 3px solid red;
box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1);
color: #FFFFFF;
}
.regular-checkbox:checked + label:after {
content: '\2714';
font-size: 14px;
position: absolute;
top: 0px;
left: 3px;
color: red;
}
.big-checkbox + label {
padding: 18px;
}
.big-checkbox:checked + label:after {
font-size: 28px;
left: 6px;
top: 0px;
}

.radio-inline, .checkbox-inline { display:inline-block;  margin-bottom:0; vertical-align:middle;   cursor:pointer;}

</style>

==============================================================

<div class="margin20Bottom"> 
                   
<p class="checkbox-inline font14 colorWhite "> <input type="checkbox" id="checkbox-2-1" class="regular-checkbox big-checkbox" /><label for="checkbox-2-1"></label> 08:00h - 12:00h</p>

<p class="checkbox-inline font14 colorWhite"> <input type="checkbox" id="checkbox-2-2" class="regular-checkbox big-checkbox" /><label for="checkbox-2-2"></label> 08:00h - 12:00h</p>

 </div>


No comments:

Post a Comment