I have a checkbox which I would like to look like this image below
This is what I have tried so far:
.rodo_icon-right {
position: relative;
top: 4px;
font-size: 20px !important;
}
.rodo-checkbox {
display: block;
/*margin-top: -46px; - commented for snippet to work */
position: absolute;
font-size: 10px;
}
.rodo-checkbox input {
padding: 0;
height: initial;
width: initial;
margin-bottom: 0;
display: none;
cursor: pointer;
}
.rodo-checkbox label {
position: relative;
cursor: pointer;
text-transform: initial;
}
.rodo-checkbox label:before {
content: '';
-webkit-appearance: none;
background-color: transparent;
border: 1px solid #000;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
padding: 6px;
display: inline-block;
position: relative;
vertical-align: middle;
cursor: pointer;
margin-right: 5px;
border-radius: 3px;
}
.rodo-checkbox input:checked+label:after {
content: '';
display: block;
position: absolute;
top: 1px;
left: 4px;
width: 5px;
height: 11px;
border: solid #000;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
<div class="rodo-checkbox">
<input type="checkbox" id="html">
<label for="html">I agree to the terms of service - <span style="text-decoration: underline;">read the Terms of Service</label><i class="fa fa-angle-right rodo_icon-right" aria-hidden="true"></i>
</div>
I have tried different methods but I am not able to get what I want.
What do I need to change to get what I want? Please help.