У меня есть флажок, который я хотел бы выглядеть следующим образом
![enter image description here](https://i.stack.imgur.com/GN8Sl.png)
Это то, что я пробовал до сих пор:
.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>
Я пробовал разные методы, но не могу получить то, что хочу.
Что мне нужно изменить, чтобы получить то, что яхочу?Пожалуйста, помогите.