...

View Full Version : Styling type=radio in css



ken_shoti
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

_Aerospace_Eng_
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.

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

_Aerospace_Eng_
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum