Steve
Steve

Reputation: 4908

How to change the color of a standard radio button?

Coding a simple radio button generates a blue button

 <input type="radio" name="sample" />
 <input type="radio" name="sample" />

See http://jsfiddle.net/XytJC/2/

How can I make these red?

Thanks

Upvotes: 1

Views: 287

Answers (2)

aspirinemaga
aspirinemaga

Reputation: 3947

At the moment it's impossible to make it appear in the same way across the all available browsers because of not fully supported CSS3 and HTML5. So what I suggest you, is to use a plugin Uniform.js to get what you are looking for.

But if you are asking this question, I would mention also, that you will need to achieve this by using the css sprite method. Here on This website you will find the corresponding documention of "how to..."

Upvotes: 2

tsm
tsm

Reputation: 3658

Try using a span, as explained here.

Upvotes: 0

Related Questions