Is there a way to control the size of the radio button in CSS ?
Not directly. In fact, form elements in general are either problematic or impossible to style using CSS alone. the best approach is to:
javascript
var labels = $("ul.radioButtons).delegate("input", "keyup", function () { //keyboard use
if (this.checked) {
select($(this).parent());
}
}).find("label").bind("click", function (event) { //mouse use
select($(this));
});
function select(el) {
labels.removeClass("selected");
el.addClass("selected");
}
html
-
-