freddiehcc
Forum Replies Created
-
Ok thanks for explaining.
Thank you very much for your help!
Hi Prasant,
Thanks for this code.
It didn’t really work at first — it came up with the additional blob sort of next to the radio button, which was still blue.
I played around with the parameters in the code, and ended up with the following, which was more successful:
input[type='radio']:checked:after { width: 16px; height: 16px; border-radius: 15px; top: -15px; left: -1px; position: relative; background-color: white; content: ''; display: inline-block; visibility: visible; border: 6px solid #4f4f4f; }But it seems strange that the solution involves creating a new image to cover up the original. Is there no way of actually changing the colour of the button itself?
Thanks very much for your help!
Hey Prasant,
Thanks so much for your response.
The code you’ve given changes the colour of the text for the selected option, whereas I was hoping to change the colour of the actual radio button or tick box. The default seems to be that the button turns blue when selected, but I would like to change this.
If there’s a way of doing this with CSS, that would be awesome!
Many thanks,
Freddie
That’s worked perfectly, thanks so much!