...

View Full Version : Targeting Radio Buttons from css



syrupcore
12-13-2005, 01:12 PM
Hi all,

Is there a way to target radio buttons from css without classing them all in the html?

I tried 'form.radio' and 'form radio' but neither seem to work

The end result I'm trying to get is that IE and Opera are showing borders around the radio buttons. Assuming this is because I have borders set elsewhere for the 'input' boxes. Since a radio is also an input... I'm looking for a way to turn them off.

Thanks,
Will

mark87
12-13-2005, 01:35 PM
You can normally use 'input.radio' but I just tried making an example and it didn't work... :confused:

_Aerospace_Eng_
12-13-2005, 08:04 PM
You can normally use 'input.radio' but I just tried making an example and it didn't work... :confused:
That would work mark if you gave a class to the input radio buttons.
class="radio"

Now if IE wasn't so behind in standards you could use this

input[type=radio] {
border:0;
}
However IE doesn't support that so you will have to give a class to your radio buttons and style them with CSS or use javascript to go through all of the radio buttons to change their borders.

syrupcore
12-13-2005, 08:21 PM
That would work mark if you gave a class to the input radio buttons.
class="radio"


lol. yeah, oops.

thanks for your replies every one. I've just ditched the borders at this point and let the browser use the OS borders.


Take care,
Will



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum