View Full Version : Styling type=radio in css

05-16-2007, 08:19 AM
Is there a way to style all radio buttons on all pages using css?

using input{background:red} will render also text boxes when i only want radio buttons to use such style....

hope not a javascript method...hahaha

05-16-2007, 08:32 AM
You will need to give them a class and style them that way. You could use

input[type=radio] {
/*css stuff*/
Unfortunately it doesn't work in IE6 and you can't really style the radio input anyways. If you tried setting a background color to it in Firefox it wouldn't show.

05-16-2007, 10:00 AM
hm....ok ,thanks for the code...but it seems not to work for me...hahaha

05-16-2007, 05:21 PM
Read my post carefully. The code I posted WILL NOT work in IE6 and Firefox won't accept the background color.