This demo page is related to the article Styling form controls with CSS, revisited. For more info on the purpose of this page, please read the article.
Each radio button control consists of this HTML:
<input type="radio" name="radiogroup" id="radio-1">
<label for="radio-1">Radio button 1</label>
The following CSS rules are used to style the radio buttons:
#el01 {width:100%} /* Width */
#el02 { /* Text and background colour, blue on light gray */
color:#00f;
background-color:#ddd;
}
#el03 {background:url(/i/icon-info.gif) no-repeat 100% 50%} /* Background image */
#el04 {border-width:6px} /* Border width */
#el05 {border:2px dotted #00f} /* Border width, style and colour */
#el06 {border:none} /* No border */
#el07 {padding:1em} /* Increase padding */
#el08 { /* Change width and height */
width:4em;
height:4em;
}
In your current browser, with your current settings, the radio buttons look like this:
And here are screenshots from several browsers on different operating systems: