I have one div
which have one checkbox, I am trying to change color of div
when checkbox checked - unchecked using HTML
CSS
only without using JavaScript
. But as CSS
doesn't support backtrace I am not sure how to achieve this.
CSS:
.content {
height: 50px;
width:50px;
border: 1px solid black;
}
HTML:
<div class="content">
<input type="checkbox">
</div>