Styled radio buttons

This page is related to the articles Styling form controls and Styling even more form controls. For more info on what the image on this page shows, please read the articles.

The following CSS rules were used to style these radio buttons:

  1. #el01 {color:#00f;}
  2. #el02 {background-color:#ddd;}
  3. #el03 {color:#fff; background-color:#33b;}
  4. #el04 {color:#fff; background-color:#33b;}
  5. #el05 {border-width:4px;}
  6. #el06 {border-color:#00f;}
  7. #el07 {border:2px solid #999;}
  8. #el08 {width:40px; height:40px;}
  9. #el09 {font-size:150%;}
  10. #el10 {font-size:10%;}
  11. #el11 {padding:0;}
  12. #el12 {margin:0;}

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:

As you can see, the results vary a lot between browsers and operating systems.

Lab Index | 456 Berea Street Home | Copyright © 2003-2014 Roger Johansson