Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
<style>
.radio-button {
margin: 15px;
}
.radio-button input[type="radio"] {
opacity: 0;
position: fixed;
width: 0;
}
.radio-button label {
display: inline-block;
background-color: #d1d1d1;
padding: 10px 20px;
font-family: sans-serif, Arial;
font-size: 16px;
border: 1px solid #666;
border-radius: 4px;
}
.radio-button label:hover {
background-color: #b1e3c1;
}
.radio-button input[type="radio"]:focus + label {
border: 2px dashed #666;
}
.radio-button input[type="radio"]:checked + label {
background-color: #76cf9f;
border-color: #666;
}
</style>
</head>
<body>
<div class="radio-button">