Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Der Titel des Dokuments</title>
<style>
.box {
display: block;
position: relative;
padding-left: 35px;
margin-bottom: 15px;
cursor: pointer;
font-size: 20px;
}
/* Hide the default style of the checkbox */
input[type=checkbox] {
visibility: hidden;
}
/* Create a custom checkbox */
.mark {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
background-color: #999999;
}
/* Specify the background color for the checkbox while hovering */
.box:hover input + .mark {
background-color: #1c87c9;
}
/* Specify the background color for the checkbox when the checkbox is active */
.box input:active + .mark {
background-color: #ffcc00;
}
/* Specify the background color for the checkbox when it is checked */
.box input:checked + .mark {