I'm interested in personalizing my radio buttons to have a unique appearance. Here is the CSS and HTML code I am using:
HTML:
<div class="buttonSlider">
<input type="radio" value=".."></input>
<input type="radio" value=".."></input>
<input type="radio" value=".."></input>
</div>
CSS:
.buttonSlider {
font-size: 250%;
background: #ccffdd;
}
.buttonSlider input[type="radio"] { /* hide radio buttons */
display: none;
}
.buttonSlider label {
display:inline-block;
background-color:#ddd;
padding:4px 11px;
font-family:Arial;
font-size:16px;
}
.buttonSlider input[type="radio"]:checked + .buttonSlider label {
background-color:#bbb;
}
Unfortunately, after applying this CSS to the radio buttons, they are not visible. Can someone explain where I might be going wrong? I'm fairly new to working with CSS.