1 개요
- CSS 큰 체크박스 만들기 2
html
Copy
<style>
#mycheckbox {
display: none;
}
#mycheckbox + label {
line-height: 1.5em;
vertical-align: middle;
background: white;
}
#mycheckbox + label > div {
float: left;
width: 1.5em; height: 1.5em;
border: 1px solid #777;
border-radius: 2px;
}
#mycheckbox:checked + label:before {
content:"";
position: absolute;
top: .55em; left: .55em;
width: 1.5em; height: 1.5em;
background-image: url('//mediawiki.org/static/1.27.0-wmf.3/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-constructive.png');
}
</style>
<input type="checkbox" id="mycheckbox"> <label for='mycheckbox'><div></div> 동의합니다.</label>