Stylized radio

Arun - 15/09/2020 2:41 PM

Files 2

html
html
<input class="styled_radio" name="accept_e_sign" type="radio">
css
css
.styled_radio{-moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;height: 22px;
    width: 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #AAAAAA; position: relative; cursor: pointer; vertical-align: middle;}

.styled_radio:hover{border-color: #606060}

.styled_radio:checked {
    background: #a6ce39;
    border-color: #a6ce39;
}

.styled_radio:checked:before {
    content: "";
    display: block;
    border-left: 2px solid #fff;
    position: absolute;
    left: 4px;
    top: 6px;
    height: 6px;
    border-bottom: 2px solid #fff;
    width: 12px;
    transform: rotate(-45deg);
}