Просто игра с :before
и :after
.
Кажется, я не могу использовать их в/с кнопкой input
? Думаю, что я мог бы использовать его, он отображает звездочку для обязательных полей. Не обязательно, что я буду делать, просто вариант
input {
position: relative;
}
input:after {
content: '';
background: url(accept.png) 0 0 no-repeat;
height: 16px;
position: absolute;
right: -20px;
top: 5px;
width: 16px;
}
Тот же код отлично работает на li
li {
clear: both;
margin: 0 0 10px;
position: relative;
}
li:after {
content: '';
background: url(accept.png) 0 0 no-repeat;
height: 16px;
position: absolute;
right: -20px;
top: 5px;
width: 16px;
}