Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I tried the following without success:

<input type="radio" style="bacground-image:url(Some-url.jpg); background-color:#SomeColor" size="35px">

In fact there was no change whatsoever.

I need to change the color of the radio button through any way or approach possible. How do I do that?
Posted
Comments
Sergey Alexandrovich Kryukov 28-Mar-15 21:11pm    
You misspell background-image, and could have misspelled color, but it may not affect it.
You can also easily simulate radio button behavior with some other elements, such as img...
—SA
Gbenbam 29-Mar-15 0:51am    
Thanks.The misspelling can't be the problem. The editor would naturally point it out for correction.

1 solution

Please see my comment to the question. There can be so-ooo many different solutions, moreover, this is a very popular topic, there are too many solutions explained on the Web:
http://webdesign.tutsplus.com/articles/quick-tip-easy-css3-checkboxes-and-radio-buttons--webdesign-8953,
http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons,
http://codepen.io/mitchmc/pen/pebIx,
http://www.hongkiat.com/blog/css3-checkbox-radio,
and, after all, http://bit.ly/1yo6E29.

—SA
 
Share this answer
 
Comments
Gbenbam 29-Mar-15 1:17am    
Actually, I had seen seen all of the above google search result. I thought there may be a simpler way to do it. So much code for somthing so small? Wow! I guess I,ll got no choice?
Sergey Alexandrovich Kryukov 29-Mar-15 1:19am    
What is so uneasy with that? All looks trivial enough. There is no such thing as miracle.
—SA
+5 Sergey.
Sergey Alexandrovich Kryukov 29-Mar-15 10:00am    
Thank you, Tadit.
—SA
Welcome. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900