I am trying to figure out if there is any way I can change the default green circle of the radio button with purple color?
Please can someone advise?
Thanks
CSSHTML
Last Comment
TheQuietShadow
8/22/2022 - Mon
Mestika
Hi,
if you are using a Windows PC with default desktop / color settings, the default radiobutton color is a blue dot, not green.
But nevertheless, the radiobutton can't be styled in CSS as such. You will need to use a combination of CSS and JavaScript to customize your radiobuttons.
Please let me know if that's the case or if I have misunderstood your question.
- Mestika
charlie324
ASKER
Hi Mestika
Thanks for your input, yes I am on Windows PC using FF, please see the screen shot attached, its showing in green color.
Yes, I want to apply #554061to the inner circle of the radio button, please can you advice how can I go about doing this?
Your help/suggestion/advise would greatly be appreciated.
Thank you
C radio.PNG
Mestika
Of yes of cause I forgot that Windows XP with FF showed them in green :-)
About your radiobuttons, you will have to create an image for a radiobutton active and one for a radiobutton inactive.
I could explaine the entire code with CSS and JS to you but I think that you would be more comfortable with some tutorials, so please look at these two pages:
They both explain the styling of the radio / checkboxes and the first page shows how you can do it with only one image containing both an active and inactive radiobutton where the other page has a image for each type of radiobutton.
If you only want to keep the original style but change the color, it should be a fairly easy task just to Photoshop and colorize the green color into purple.
Please let me know if you have any further questions
Hi Mestika
I did try to follow from the links above but did not have no luck on this yet ... please can you help in making one?
thank you
TheQuietShadow
Call me silly, but couldn't you just create two images... One for selected and one for unselected and use javascript to change them? You could even use a third image for highlighting the radio button on mouseover. It would be much more customizable this way.
if you are using a Windows PC with default desktop / color settings, the default radiobutton color is a blue dot, not green.
But nevertheless, the radiobutton can't be styled in CSS as such. You will need to use a combination of CSS and JavaScript to customize your radiobuttons.
Please let me know if that's the case or if I have misunderstood your question.
- Mestika