CSS 큰 체크박스 (이미지 1개, 테두리)

1 개요[ | ]

CSS 큰 체크박스 만들기 3
<style>
input[type=checkbox] { display: none; }
input[type=checkbox] + label { cursor: pointer; }
input[type=checkbox] + label > div {
    cursor: pointer;
    vertical-align: middle;
    background: white;
    box-sizing: border-box;
    display: inline-block;
    width: 22px; height: 22px;
    margin-top: -5px;
    border: 1px solid #777;
    border-radius: 2px;
}
input[type=checkbox] + label:hover > div { border-width: 2px; }
input[type=checkbox]:checked + label > div {
    background: url('//mediawiki.org/static/1.27.0-wmf.3/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-constructive.png') center;
}
</style>

<input type="checkbox" id="box1"><label for="box1"><div></div></label>
<br><br>
<input type="checkbox" id="box2"><label for="box2"><div></div>&nbsp;동의합니다.</label>
<br><br>
<input type="checkbox" id="box3"><label for="box3"><div></div>&nbsp;동의합니다.</label>

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}