Is it possible to style the center circle of a selected radio button, at least in webkit browsers…?
What I have now:
What I want:
I can change the background color, shadow etc as follows
#searchPopup input[type="radio"]{
-webkit-appearance:none;
box-shadow: inset 1px 1px 1px #000000;
background:#fff;
}
#searchPopup input[type="radio"]:checked{
-webkit-appearance:radio;
box-shadow: none;
background:rgb(252,252,252);
}
Any ideas..?
You could also apply a background-image when the radio button is checked
An example: http://jsfiddle.net/yZ6tM/
You can mimic the radio button using some round border trick (to render the outer circle) and the pseudo-element
:before
(to render the inner circle) which can fortunately be used on an input field ofradio
type:Working Demo.
You can bind radio-button to label, than you can hide radio-button and style label whatever you like. Example.