How to change the size of the radio button using CSS?

Misha Moroshko picture Misha Moroshko · Feb 7, 2011 · Viewed 302.3k times · Source

Is there a way to control the size of the radio button in CSS ?

Answer

LapinLove404 picture LapinLove404 · Feb 7, 2011

Yes, you should be able to set its height and width, as with any element. However, some browsers do not really take these properties into account.

This demo gives an overview of what is possible and how it is displayed in various browsers: https://www.456bereastreet.com/lab/styling-form-controls-revisited/radio-button/

As you'll see, styling radio buttons is not easy :-D

A workaround is to use JavaScript and CSS to replace the radio buttons and other form elements with custom images: